opt/samba/Pkgfile

56 lines
1.7 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: SMB server and client for unix
# URL: http://www.samba.org
2011-02-02 13:44:37 +01:00
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: ncurses openssl readline zlib tdb talloc libcap acl
2006-02-23 16:26:10 +01:00
name=samba
2012-12-10 18:38:44 +01:00
version=3.6.10
release=1
2006-12-30 16:47:35 +01:00
source=(http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
2008-07-11 09:23:24 +02:00
samba-config.patch samba)
2006-02-23 16:26:10 +01:00
build () {
cd $name-$version/source3
2011-09-02 12:20:35 +02:00
patch -d .. -p1 -i $SRC/samba-config.patch
2006-02-23 16:26:10 +01:00
./configure --prefix=/usr \
--localstatedir=/var \
2006-02-23 16:26:10 +01:00
--with-fhs \
--with-configdir=/etc/samba \
2009-01-29 17:26:29 +01:00
--with-modulesdir=/usr/lib/samba \
2006-02-23 16:26:10 +01:00
--with-lockdir=/var/run/samba \
--with-piddir=/var/run/samba \
--with-nmbdsocketdir=/var/run/samba \
2006-07-13 18:21:35 +02:00
--with-mandir=/usr/man \
2008-07-11 09:23:24 +02:00
--with-logfilebase=/var/log/samba \
--disable-swat \
--with-included-popt \
--enable-external-{libtdb,libtalloc}
make
2006-07-13 18:21:35 +02:00
make DESTDIR=$PKG install
2012-04-19 10:07:52 +02:00
# pkg-config files
install -d $PKG/usr/lib/pkgconfig
install pkgconfig/*.pc $PKG/usr/lib/pkgconfig
2007-08-21 13:49:57 +02:00
# nsswitch extensions
install -d $PKG/lib
install ../nsswitch/libnss_win{s,bind}.so $PKG/lib
2007-08-21 13:49:57 +02:00
ln -s libnss_wins.so $PKG/lib/libnss_wins.so.2
ln -s libnss_winbind.so $PKG/lib/libnss_winbind.so.2
# spool/log/lib directory
install -d $PKG/var/{lib,log}/samba
2007-08-21 13:49:57 +02:00
install -d -m 1777 $PKG/var/spool/samba
2006-02-23 16:26:10 +01:00
# config-file and start-script
2008-07-11 09:23:24 +02:00
install -m 600 ../examples/smb.conf.default $PKG/etc/samba
2006-02-23 16:26:10 +01:00
install -D -m 755 $SRC/samba $PKG/etc/rc.d/samba
2006-02-23 16:26:10 +01:00
# cleanup
2009-01-29 17:26:29 +01:00
rm -r $PKG/usr/share
rm $PKG/usr/man/man8/{swat.8,tdb*.8}
2006-02-23 16:26:10 +01:00
}