summaryrefslogtreecommitdiff
path: root/samba/Pkgfile
blob: bd105cc70ffd96def8cc228dd1b39975f5565a69 (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
    5 
    6 name=samba
    7 version=3.6.13
    8 release=1
    9 source=(http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
   10         samba-config.patch samba)
   11 
   12 build () {
   13     cd $name-$version/source3
   14 
   15     patch -d .. -p1 -i $SRC/samba-config.patch
   16 
   17     ./configure --prefix=/usr \
   18                 --localstatedir=/var \
   19                 --with-fhs \
   20                 --with-configdir=/etc/samba \
   21                 --with-modulesdir=/usr/lib/samba \
   22                 --with-lockdir=/var/run/samba \
   23                 --with-piddir=/var/run/samba \
   24                 --with-nmbdsocketdir=/var/run/samba \
   25                 --with-mandir=/usr/man \
   26                 --with-logfilebase=/var/log/samba \
   27                 --disable-swat \
   28                 --with-included-popt \
   29                 --enable-external-{libtdb,libtalloc}
   30 
   31     make
   32     make DESTDIR=$PKG install
   33 
   34     # pkg-config files
   35     install -d $PKG/usr/lib/pkgconfig
   36     install pkgconfig/*.pc $PKG/usr/lib/pkgconfig
   37 
   38     # nsswitch extensions
   39     install -d $PKG/lib
   40     install ../nsswitch/libnss_win{s,bind}.so $PKG/lib
   41     ln -s libnss_wins.so $PKG/lib/libnss_wins.so.2
   42     ln -s libnss_winbind.so $PKG/lib/libnss_winbind.so.2
   43 
   44     # spool/log/lib directory
   45     install -d $PKG/var/{lib,log}/samba
   46     install -d -m 1777 $PKG/var/spool/samba
   47 
   48     # config-file and start-script
   49     install -m 600 ../examples/smb.conf.default $PKG/etc/samba
   50     install -D -m 755  $SRC/samba $PKG/etc/rc.d/samba
   51 
   52     # cleanup
   53     rm -r $PKG/usr/share
   54     rm $PKG/usr/man/man8/{swat.8,tdb*.8}
   55 }

Generated by cgit