summaryrefslogtreecommitdiffstats
path: root/samba4/Pkgfile
blob: 86346fd37b0ec7545173a5d2069a213ee50bde47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Description: Service de partage de fichiers et imprimantes Windows pour Linux
# URL: http://www.samba.org
# Maintainer: NuTyX core team
# Packager: piernov <piernov@piernov.org>
# Depends on: talloc, libcups, gamin, kerberos, libcap
# Run on: talloc,libcups,gamin,kerberos,libcap

name=samba4
version=4.0.0alpha17
release=1
localname=samba
source=(http://ftp.samba.org/pub/samba/samba4/$localname-$version.tar.gz)


build() {
	cd $localname-$version
	sed "s|#!/usr/bin/env python|#!/usr/bin/env python2|" -i buildtools/bin/waf
	export PYTHON=/usr/bin/python2
	./buildtools/bin/waf configure -C \
		--prefix=/usr \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--enable-developer \
		--enable-socket-wrapper \
		--enable-nss-wrapper \
		--enable-fhs \
		--with-piddir=/var/run \
		--with-pammodulesdir=/lib/security \
		--with-syslog
	./buildtools/bin/waf build
	./buildtools/bin/waf install --destdir=$PKG
}