summaryrefslogtreecommitdiffstats
path: root/samba3/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'samba3/Pkgfile')
-rwxr-xr-xsamba3/Pkgfile51
1 files changed, 51 insertions, 0 deletions
diff --git a/samba3/Pkgfile b/samba3/Pkgfile
new file mode 100755
index 000000000..02c2c61d1
--- /dev/null
+++ b/samba3/Pkgfile
@@ -0,0 +1,51 @@
+# 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: talloc, libcups, gamin, kerberos, libcap
+# Run on: talloc,libcups,gamin,kerberos,libcap
+
+name=samba3
+version=3.6.1
+release=1
+localname=samba
+source=( http://ftp.samba.org/pub/samba/stable/$localname-$version.tar.gz)
+
+
+build() {
+ cd $localname-$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
+
+ chmod -v 644 $PKG/usr/include/libsmbclient.h
+ install -d $PKG/lib
+ install -v -m755 $SRC/$localname-$version/nsswitch/libnss_win{s,bind}.so $PKG/lib
+ ln -v -sf libnss_winbind.so $PKG/lib/libnss_winbind.so.2
+ ln -v -sf libnss_wins.so $PKG/lib/libnss_wins.so.2
+
+ install -v -m644 ../examples/smb.conf.default $PKG/etc/samba/smb.conf.default
+ # chmod -v 4755 $PKG/usr/sbin/{,u}mount.cifs
+ # cups
+ cd $PKG/usr/lib/
+ install -d cups/backend
+ ln -v -sf /usr/bin/smbspool $PKG/usr/lib/cups/backend/smb
+ rm -r $PKG/{var,etc,usr/share/samba}
+ rm -r $PKG/usr/sbin/{nmbd,smbd,swat,winbindd}
+ # Ne garder que les mans de mount.cifs si ils existent
+ if [ -f $PKG/usr/share/man/man8/umount.cifs.8 ]; then
+ mv $PKG/usr/share/man/man8/{u,}mount.cifs.8 .
+ rm -r $PKG/usr/share/man/man8
+ mkdir -p $PKG/usr/share/man/man8
+ mv {u,}mount.cifs.8 $PKG/usr/share/man/man8/
+ else
+ rm -r $PKG/usr/share/man/man8
+ fi
+}