2006-02-23 15:26:10 +00: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
|
2013-05-21 15:35:22 +02:00
|
|
|
# Depends on: ncurses openssl readline zlib tdb talloc libcap acl libaio popt
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=samba
|
2015-01-20 16:51:09 +01:00
|
|
|
version=4.1.16
|
2014-08-01 20:23:55 +02:00
|
|
|
release=1
|
2006-12-30 16:47:35 +01:00
|
|
|
source=(http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
|
2014-07-04 13:39:30 +02:00
|
|
|
samba-install_yapp_driver.patch
|
2013-05-21 15:35:22 +02:00
|
|
|
samba)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
2013-05-21 15:35:22 +02:00
|
|
|
cd $name-$version
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2014-07-04 13:39:30 +02:00
|
|
|
patch -d pidl/lib -p0 -i $SRC/samba-install_yapp_driver.patch
|
|
|
|
|
2014-12-02 13:24:52 +01:00
|
|
|
# we should define vendorlib in our perl port
|
|
|
|
sed -ri 's/(vendor)(arch|lib|prefix)/site\2/' buildtools/wafsamba/samba_perl.py
|
|
|
|
|
2013-05-21 15:35:22 +02:00
|
|
|
./configure --enable-fhs \
|
|
|
|
--prefix=/usr \
|
2008-10-23 14:26:22 +02:00
|
|
|
--localstatedir=/var \
|
2013-05-21 15:35:22 +02:00
|
|
|
--mandir=/usr/man \
|
|
|
|
--sysconfdir=/etc \
|
2014-06-04 21:36:00 +02:00
|
|
|
--with-privatedir=/etc/samba/private
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2010-03-25 11:13:43 +01:00
|
|
|
make
|
2014-08-01 20:23:55 +02:00
|
|
|
make DESTDIR=$PKG install
|
2007-11-21 11:32:43 +01:00
|
|
|
|
2013-05-21 15:35:22 +02:00
|
|
|
# man pages
|
2014-07-04 13:39:30 +02:00
|
|
|
local p
|
|
|
|
for p in docs/manpages/*; do
|
|
|
|
install -D -m 644 $p $PKG/usr/man/man${p##*.}/${p##*/}
|
|
|
|
done
|
2013-05-21 15:35:22 +02:00
|
|
|
|
2013-10-18 09:41:30 +02:00
|
|
|
# cleanup
|
2013-05-23 11:19:50 +02:00
|
|
|
chmod 1777 $PKG/var/lock
|
2013-05-21 15:35:22 +02:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
# config-file and start-script
|
2013-05-21 15:35:22 +02:00
|
|
|
install -d $PKG/etc/{samba,rc.d}
|
|
|
|
install -m 0600 packaging/LSB/smb.conf $PKG/etc/samba/smb.conf.default
|
|
|
|
install -m 0755 $SRC/samba $PKG/etc/rc.d
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|