summaryrefslogtreecommitdiff
path: root/samba/Pkgfile
blob: b2902d1ea70f8f56ea6ee254c8b7d7f9d2ce2366 (plain)
    1 # Description: SMB server and client for unix
    2 # URL:         http://www.samba.org
    3 # Maintainer:  Jürgen Daubert, juergen dot daubert at t-online dot de
    4 # Depends on:  ncurses, readline
    5 
    6 name=samba
    7 version=3.0.26a
    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/source
   14     patch -d $SRC -p0 -i $SRC/samba-config.patch
   15     ./configure --prefix=/usr \
   16                 --with-fhs \
   17                 --with-smbmount \
   18                 --with-configdir=/etc/samba \
   19                 --with-lockdir=/var/run/samba \
   20                 --with-piddir=/var/run/samba \
   21                 --with-mandir=/usr/man \
   22                 --with-logfilebase=/var/log/samba
   23     make -j1
   24     make DESTDIR=$PKG install
   25     
   26     # symlinks
   27     (cd $PKG/usr/lib 
   28      ln -s samba/libsmbclient.so libsmbclient.so
   29      ln -s samba/libsmbclient.so libsmbclient.so.0)
   30     
   31     # nsswitch extensions
   32     install -d $PKG/lib
   33     install nsswitch/libnss_win{s,bind}.so $PKG/lib
   34     ln -s libnss_wins.so $PKG/lib/libnss_wins.so.2
   35     ln -s libnss_winbind.so $PKG/lib/libnss_winbind.so.2
   36 
   37     # spool/log directory
   38     install -d $PKG/var/log/samba
   39     install -d -m 1777 $PKG/var/spool/samba
   40     
   41     # config-file and start-script
   42     cp ../examples/smb.conf.default $PKG/etc/samba
   43     install -D -m 755  $SRC/samba $PKG/etc/rc.d/samba
   44     
   45     # cleanup
   46     rm -r $PKG/usr/{var,lib/samba/*.msg}
   47     chmod -x $PKG/usr/include/*
   48 
   49     # remove swat
   50     rm $PKG/usr/{sbin/swat,man/man8/swat.8}
   51     rm -r $PKG/usr/share
   52 }

Generated by cgit