summaryrefslogtreecommitdiff
path: root/samba/Pkgfile
blob: 4bf71187ba27b77a981bef32101b5ac9e7568759 (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:  e2fsprogs libarchive tdb tevent libcap libaio popt
    5 
    6 name=samba
    7 version=4.7.2
    8 release=1
    9 source=(https://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
   10         samba)
   11 
   12 build () {
   13     cd $name-$version
   14 
   15     ./configure --enable-fhs \
   16                 --prefix=/usr \
   17                 --libexecdir=/usr/lib \
   18                 --localstatedir=/var \
   19                 --sysconfdir=/etc \
   20                 --with-privatedir=/etc/samba/private \
   21                 --bundled-libraries=!tdb,!talloc,!tevent,!popt \
   22                 --without-{ad-dc,ads,ldap,pam} \
   23                 --disable-python
   24 
   25     python ./buildtools/bin/waf build --jobs=${JOBS:-1}
   26     python ./buildtools/bin/waf install --destdir=$PKG
   27 
   28     # man pages
   29     local p
   30     for p in docs/manpages/*; do 
   31         install -D -m 644 $p $PKG/usr/share/man/man${p##*.}/${p##*/}
   32     done
   33 
   34     # cleanup
   35     chmod 1777 $PKG/var/lock
   36 
   37     # remove pidl
   38     find $PKG -iname '*pidl*' -type f -delete
   39     find $PKG -depth -name perl5 -type d -exec rm -r {} \;
   40 
   41     # remove third party python stuff
   42     rm -r $PKG/usr/lib/python?.?
   43 
   44     # config-file and start-script
   45     install -d $PKG/etc/{samba,rc.d}
   46     install -m 0600 examples/smb.conf.default $PKG/etc/samba
   47     install -m 0755 $SRC/samba $PKG/etc/rc.d
   48 
   49     # revdep
   50     install -d $PKG/etc/revdep.d
   51     echo '/usr/lib/samba' > $PKG/etc/revdep.d/samba
   52 }

Generated by cgit