summaryrefslogtreecommitdiff
path: root/samba/Pkgfile
blob: 9409fa086e5912645944110999ffcdf5f14caa93 (plain)
    1 # Description: SMB server and client for unix
    2 # URL:         http://www.samba.org
    3 # Maintainer:  Juergen Daubert, jue at crux dot nu
    4 # Depends on:  ncurses openssl readline zlib tdb talloc libcap acl libaio popt
    5 
    6 name=samba
    7 version=4.1.5
    8 release=1
    9 source=(http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
   10         samba)
   11 
   12 build () {
   13     cd $name-$version
   14 
   15     local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
   16     test -n "$JOBS" && export JOBS="$JOBS"
   17 
   18     ./configure --enable-fhs \
   19                 --prefix=/usr \
   20                 --localstatedir=/var \
   21                 --mandir=/usr/man \
   22                 --sysconfdir=/etc \
   23                 --with-privatedir=/etc/samba/private
   24 
   25     make
   26     make DESTDIR=$PKG install
   27 
   28     # man pages
   29     install -d $PKG/usr/man/man{1,5,8}
   30     install -m 644 docs/manpages/*.1 $PKG/usr/man/man1
   31     install -m 644 docs/manpages/*.5 $PKG/usr/man/man5
   32     install -m 644 docs/manpages/*.8 $PKG/usr/man/man8
   33     
   34     # cleanup
   35     chmod 1777 $PKG/var/lock
   36     
   37     # config-file and start-script
   38     install -d $PKG/etc/{samba,rc.d}
   39     install -m 0600 packaging/LSB/smb.conf $PKG/etc/samba/smb.conf.default
   40     install -m 0755 $SRC/samba $PKG/etc/rc.d
   41 }

Generated by cgit