# Description: SMB server and client for unix # URL: http://www.samba.org # Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de # Depends on: ncurses, readline name=samba version=3.0.28 release=1 source=(http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \ samba-config.patch samba) build () { cd $name-$version/source patch -d .. -p1 -i $SRC/samba-config.patch ./configure --prefix=/usr \ --with-fhs \ --with-smbmount \ --with-configdir=/etc/samba \ --with-lockdir=/var/run/samba \ --with-piddir=/var/run/samba \ --with-mandir=/usr/man \ --with-logfilebase=/var/log/samba make -j1 make DESTDIR=$PKG install mv $PKG/usr/sbin/*.cifs $PKG/sbin # symlinks (cd $PKG/usr/lib ln -s samba/libsmbclient.so libsmbclient.so ln -s samba/libsmbclient.so libsmbclient.so.0) # nsswitch extensions install -d $PKG/lib install nsswitch/libnss_win{s,bind}.so $PKG/lib ln -s libnss_wins.so $PKG/lib/libnss_wins.so.2 ln -s libnss_winbind.so $PKG/lib/libnss_winbind.so.2 # spool/log directory install -d $PKG/var/log/samba install -d -m 1777 $PKG/var/spool/samba # config-file and start-script cp ../examples/smb.conf.default $PKG/etc/samba install -D -m 755 $SRC/samba $PKG/etc/rc.d/samba # cleanup rm -r $PKG/usr/{var,lib/samba/*.msg} chmod -x $PKG/usr/include/* # remove swat rm $PKG/usr/{sbin/swat,man/man8/swat.8} rm -r $PKG/usr/share }