summaryrefslogtreecommitdiffstats
path: root/samba3-server/Pkgfile
blob: 4e7fd949933c81539524214a657159233c5c211a (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
33
34
35
36
37
38
# Description: Service de partage de fichiers et imprimantes Windows pour Linux
# URL: http://www.samba.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: samba3
# Run on: samba3

name=samba3-server
version=3.6.3
release=1
source=(http://us6.samba.org/samba/ftp/stable/samba-$version.tar.gz
	smb.conf)

build() {
	source /etc/blfs-bootscripts
#	wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
	wget http://nutyx.meticul.eu/files/patchs/aaabasicfs/blfs-bootscripts-$scriptsversion.tar.bz2
	tar xf $scripts-$scriptsversion.tar.bz2
	cd $scripts-$scriptsversion
	make DESTDIR=$PKG install-samba
	make DESTDIR=$PKG install-winbind
	cd ../samba-$version/source3
	PYTHON_VER=2.7 ./configure --prefix=/usr \
		--localstatedir=/var \
		--sysconfdir=/etc \
                --with-piddir=/var/run \
                --with-pammodulesdir=/lib/security \
		--with-fhs --with-syslog
	make
	make DESTDIR=$PKG install
        
        # reorganise files
	rm -r $PKG/{lib,usr/{lib,include,bin,share/{samba,locale,man/man{1,5,7}}}}
	install -v -m644 ../examples/smb.conf.default $PKG/etc/samba/smb.conf.default
        cp $SRC/smb.conf $PKG/etc/samba/

	rm -f $PKG/usr/share/man/man8/tdb*
}