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

Generated by cgit