DOCS="COPYING Manifest README Read-Manifest-Now Roadmap WHATSNEW.txt docs \ examples" IGNOREPATH=/boot:/dev:/home:/mnt:/proc:/root:/tmp:/var STRIPLIB=y STRIPBIN=y SETATTR=y VERSION=2.2.4 PROGNAME="Samba" # |-----handy-ruler------------------------------------------------------| SLACKDESC="\ samba: samba-$VERSION\n\ samba:\n\ samba: Samba is a Unix based SMB file and print server. This allows a Unix\n\ samba: host to act as a file and print server for SMB clients. This includes\n\ samba: Lan-Manager compatible clients such as LanManager for DOS, Windows\n\ samba: 95/98/NT/2000, OS/2, Pathworks and many more. If you have any PCs\n\ samba: running SMB clients, such as a PC running Windows98, then you can\n\ samba: mount file space or printers from a Linux host, so that directories,\n\ samba: files and printers on the Linux host are available on the Windows PC.\n\ samba:\n\ samba:" # maintainer ARCH=i386 BUILD=1rob MAINTAINER="Robert Stan " SOURCE=http://www.samba.org/ LOCATION=ftp://ftp.linuxpackages.net/pub/Slackware-8/robert/n/ # package name PKGNAME="samba-${VERSION}-${ARCH}-${BUILD}" compile() { tar xvyf $CWD/samba-$VERSION.tar.bz2 ; cd samba-$VERSION ; cd source ./configure \ --with-fhs \ --prefix=/usr \ --localstatedir=/var \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --with-configdir=/etc/samba \ --with-privatedir=/etc/samba/private \ --with-codepagedir=/etc/codepages \ --with-lockdir=/var/lock/samba \ --with-automount \ --with-smbmount \ --with-quotas \ --with-syslog \ --with-utmp \ --with-netatalk \ --with-sambabook=/usr/share/samba/swat/using_samba \ --with-swatdir=/usr/share/samba/swat \ --with-ssl \ --with-sslinc=/usr/include/openssl \ --with-ssllib=/usr/lib \ --with-msdfs \ --with-vfs \ --with-acl-support \ i386-slackware-linux || exit 1 make || exit 1 } install() { mkdir -p /usr/share/samba/codepages \ /usr/doc/samba-$VERSION/swat \ /etc/samba/private make install rmdir /usr/private /usr/share/samba/codepages cat $CWD/smb.conf-sample > /etc/samba/smb.conf-sample mkdir -p /usr/doc/samba-$VERSION/examples cat $CWD/rc.samba > /usr/doc/samba-$VERSION/examples/rc.samba cd .. cp -a $DOCS /usr/doc/samba-$VERSION cp -a swat/README /usr/doc/samba-$VERSION/swat ( cd /usr/doc/samba-$VERSION/docs/htmldocs rm -rf using_samba ln -sf /usr/share/samba/swat/using_samba . ) } attributes() { chmod 700 $PKG/etc/samba/private chmod 755 $PKG/usr/doc/samba-$VERSION/examples/rc.samba chown -R root.root $PKG/usr/doc/samba-$VERSION } special() { mkdir -p $PKG/var/spool/samba mkdir -p $PKG/var/lock/samba chmod 1777 $PKG/var/lock chmod 0700 $PKG/etc/samba/private # Package description echo -e $SLACKDESC > $CTL/slack-desc echo -e $SLACKDESC > $CWD/$PKGNAME.txt } subpacks() { echo "No subpacks..." }