opt/samba/Pkgfile

45 lines
1.2 KiB
Plaintext
Raw Normal View History

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
# Depends on: ncurses openssl readline zlib tdb talloc libcap acl libaio popt
2006-02-23 15:26:10 +00:00
name=samba
version=4.1.16
release=1
2006-12-30 16:47:35 +01:00
source=(http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
samba-install_yapp_driver.patch
samba)
2006-02-23 15:26:10 +00:00
build () {
cd $name-$version
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
./configure --enable-fhs \
--prefix=/usr \
--localstatedir=/var \
--mandir=/usr/man \
--sysconfdir=/etc \
--with-privatedir=/etc/samba/private
make
make DESTDIR=$PKG install
# man pages
local p
for p in docs/manpages/*; do
install -D -m 644 $p $PKG/usr/man/man${p##*.}/${p##*/}
done
2013-10-18 09:41:30 +02:00
# cleanup
2013-05-23 11:19:50 +02:00
chmod 1777 $PKG/var/lock
2006-02-23 15:26:10 +00:00
# config-file and start-script
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
}