VERSION=2.0.8 BUILD=1 ARCH=i386 TAG=OPT PKGNAME=samba MAINTAINER="tg " IGNOREPATH=/tmp:/proc:/dev:/root:/var:/home STRIPLIB=y STRIPBIN=y PROGNAME=Samba DESC="\ Samba $VERSION\n\ \n\ Samba is a Unix based SMB file and print server. This allows a Unix\n\ host to act as a file and print server for SMB clients. This includes\n\ Lan-Manager compatible clients such as LanManager for DOS, Windows\n\ 95/98/NT/2000, OS/2, Pathworks and many more. If you have any PCs\n\ running SMB clients, such as a PC running Windows98, then you can\n\ mount file space or printers from a Linux host, so that directories,\n\ files and printers on the Linux host are available on the Windows PC." compile() { tar xvzf $CWD/samba-$VERSION.tar.gz cd samba-$VERSION # The patch below sets the following directories that # can't be defined with flags to configure: # CODEPAGEDIR = /usr/lib/samba/codepages # SBINDIR = /usr/sbin (there is a configure flag for this, but it's ignored) zcat $CWD/samba-$VERSION.diff.gz | patch -p0 --verbose --backup -z .orig cd source ./configure --prefix=/usr \ --localstatedir=/var/log \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --libdir=/etc \ --with-privatedir=/usr/lib/samba/private \ --with-swatdir=/usr/lib/samba/swat \ --with-lockdir=/var/lock \ --with-smbmount make CFLAGS="-O" } install() { mkdir -p /usr/lib/samba/codepages mkdir -p /usr/doc/samba-$VERSION/swat make CFLAGS="-O" install mkdir -p /usr/doc/samba-$VERSION/swat cd .. cp -r COPYING Manifest README README-smbmount Read-Manifest-Now \ Roadmap WHATSNEW.txt docs examples /usr/doc/samba-$VERSION cp swat/README /usr/doc/samba-$VERSION/swat } attributes() { chmod 755 $PKG/usr/doc/samba-$VERSION/docs/textdocs/MIRRORS.txt chmod 755 $PKG/usr/doc/samba-$VERSION/examples/printing/smbprint chmod 755 $PKG/usr/doc/samba-$VERSION/examples/svr4-startup/samba.server } special() { find $PKG -type f -name "*.old" -exec rm -rf {} \; mkdir -p $PKG/var/spool/samba mkdir -p $PKG/etc/rc.d cat $CWD/smb.conf-sample > $PKG/etc/smb.conf-sample cat $CWD/rc.samba > $PKG/etc/rc.d/rc.samba chmod 755 $PKG/etc/rc.d/rc.samba }