summaryrefslogtreecommitdiff
path: root/samba/Pkgfile
blob: 0b0e0f02d9afbf3b0bac1044434747445195ce85 (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.23d
    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/source
   14     ./configure --prefix=/usr \
   15                 --with-fhs \
   16                 --with-smbmount \
   17                 --with-configdir=/etc/samba \
   18                 --with-lockdir=/var/run/samba \
   19                 --with-piddir=/var/run/samba \
   20                 --with-mandir=/usr/man \
   21                 --with-logfilebase=/var/log/samba
   22     make
   23     make DESTDIR=$PKG install
   24     
   25     # nsswitch extensions
   26     install nsswitch/libnss_win{s,bind}.so $PKG/usr/lib/samba
   27 
   28     install -d $PKG/{sbin,var/log/samba}
   29     
   30     # symlinks
   31     (cd $PKG/usr/lib 
   32      ln -s samba/libsmbclient.so libsmbclient.so
   33      ln -s samba/libsmbclient.so libsmbclient.so.0
   34      ln -s samba/libnss_winbind.so libnss_winbind.so
   35      ln -s samba/libnss_winbind.so libnss_winbind.so.2
   36      ln -s samba/libnss_wins.so libnss_wins.so
   37      ln -s samba/libnss_wins.so libnss_wins.so.2)
   38     
   39     # config-file and start-script
   40     cp ../examples/smb.conf.default $PKG/etc/samba
   41     install -D -m 755  $SRC/samba $PKG/etc/rc.d/samba
   42     
   43     # cleanup
   44     rm -r $PKG/usr/{var,lib/samba/*.msg}
   45     chmod -x $PKG/usr/include/*
   46 
   47     # remove swat
   48     rm $PKG/usr/{sbin/swat,man/man8/swat.8}
   49     rm -r $PKG/usr/share
   50 }

Generated by cgit