summaryrefslogtreecommitdiffstats
path: root/extra/samba3/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-12 20:43:57 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-12 20:43:57 +0200
commit8268bac59d102754a67bfe74b4c7699e688fe8d3 (patch)
treeb4a46be0c3d59d88c67679ecbca1a35d3947b99d /extra/samba3/Pkgfile
parent30d59da335dea182c5677143f52fe1a17469d51b (diff)
downloadnutyx-pakxe-8268bac59d102754a67bfe74b4c7699e688fe8d3.tar.gz
nutyx-pakxe-8268bac59d102754a67bfe74b4c7699e688fe8d3.tar.bz2
nutyx-pakxe-8268bac59d102754a67bfe74b4c7699e688fe8d3.tar.xz
nutyx-pakxe-8268bac59d102754a67bfe74b4c7699e688fe8d3.zip
Ajout de samba3#3.3.7-1
Diffstat (limited to 'extra/samba3/Pkgfile')
-rwxr-xr-xextra/samba3/Pkgfile45
1 files changed, 45 insertions, 0 deletions
diff --git a/extra/samba3/Pkgfile b/extra/samba3/Pkgfile
new file mode 100755
index 000000000..8d3ab84db
--- /dev/null
+++ b/extra/samba3/Pkgfile
@@ -0,0 +1,45 @@
+# 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: cups
+
+name=samba3
+version=3.3.7
+release=1
+localname=samba
+source=( http://us6.samba.org/samba/ftp/stable/$localname-$version.tar.gz\
+ smb.conf)
+
+
+build() {
+ cd $localname-$version/source
+ ./configure --prefix=/usr \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --with-piddir=/var/run \
+ --with-pammodulesdir=/lib/security \
+ --with-fhs \
+ --with-cups \
+ --with-smbmount
+ make -j3
+ make DESTDIR=$PKG install
+
+ # reorganise files
+
+ chmod -v 644 $PKG/usr/include/libsmbclient.h
+ install -d $PKG/lib
+ install -v -m755 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
+ cp $SRC/smb.conf $PKG/etc/samba/
+ # cups
+ cd $PKG/usr/lib/
+ install -d cups/backend
+ ln -v -sf /usr/bin/smbspool $PKG/usr/lib/cups/backend/smb
+ install -d -m 1777 $PKG/var/spool/samba
+}