opt/samba/Pkgfile

42 lines
1.2 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 libaio popt
2006-02-23 16:26:10 +01:00
name=samba
2013-11-22 15:59:53 +01:00
version=4.1.2
2013-07-10 12:24:13 +02:00
release=1
2006-12-30 16:47:35 +01:00
source=(http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
samba)
2006-02-23 16:26:10 +01:00
build () {
cd $name-$version
local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
test -n "$JOBS" && export JOBS="$JOBS"
./configure --enable-fhs \
--prefix=/usr \
--localstatedir=/var \
--mandir=/usr/man \
--sysconfdir=/etc \
2013-10-18 09:41:30 +02:00
--with-privatedir=/etc/samba/private
make
2006-07-13 18:21:35 +02:00
make DESTDIR=$PKG install
# man pages
install -d $PKG/usr/man/man{1,5,8}
install -m 644 docs/manpages/*.1 $PKG/usr/man/man1
install -m 644 docs/manpages/*.5 $PKG/usr/man/man5
install -m 644 docs/manpages/*.8 $PKG/usr/man/man8
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 16:26:10 +01: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 16:26:10 +01:00
}