# HG changeset patch # User Pascal Bellard # Date 1218555790 0 # Node ID c8bb947e126c56ac0ad4ac606a9d46a656950aae # Parent e87cddeb92a186ebddeb6a1f0507a977fc540984 Add samba diff -r e87cddeb92a1 -r c8bb947e126c samba-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samba-dev/receipt Tue Aug 12 15:43:10 2008 +0000 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="samba-dev" +VERSION="3.2.1" +CATEGORY="development" +SHORT_DESC="File and print services with SMB/CIFS, development files." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://samba.org/" +WANTED="samba" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/include $fs/usr +} + diff -r e87cddeb92a1 -r c8bb947e126c samba/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samba/receipt Tue Aug 12 15:43:10 2008 +0000 @@ -0,0 +1,76 @@ +# SliTaz package receipt. + +PACKAGE="samba" +VERSION="3.2.1" +CATEGORY="system-tools" +SHORT_DESC="File and print services with SMB/CIFS." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://samba.org/" +WGET_URL="${WEB_SITE}$PACKAGE/ftp/stable/$TARBALL" +BUILD_DEPENDS="libldap openldap-dev cups cups-dev" +DEPENDS="libldap smbclient perl cups" +CONFIG_FILES="/etc/samba" +BUGS="Open directory needs MIT kerberos support (krb5)" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src/source + ./configure --prefix=/usr --infodir=/usr/share/info \ + --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \ + --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \ + --enable-shared-libs --with-libtalloc --with-libtdb \ + --with-libsmbsharemodes --with-libsmbclient \ + --sysconfdir=/etc --localstatedir=/var \ + --mandir=/usr/share/man $CONFIGURE_ARGS + make + make DESTDIR=$PWD/../_pkg install + ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0 + cp ../../stuff/*.files-list .. +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/etc $fs + cp -a $_pkg/var $fs + cp -a $_pkg/usr/lib $fs/usr + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a stuff/etc $fs + cat $src/*.files-list | while read file; do + rm -rf $fs$file + done + # Package all samba pkgs + for i in $(cd $WOK; grep -l '^WANTED="samba"$' */receipt) + do + tazwok cook ${i%/receipt} + done +} + +# Pre and post install commands for Tazpkg. +post_install() +{ + ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz < "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/swat/" => "/usr/share/samba/swat/",|g' -i $1/etc/lighttpd/lighttpd.conf + if [ -z "$1" ]; then + # Start Web server. + /etc/init.d/lighttpd stop + /etc/init.d/lighttpd start + fi + fi + fi +} diff -r e87cddeb92a1 -r c8bb947e126c swat/stuff/swat.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/swat/stuff/swat.desktop Tue Aug 12 15:43:10 2008 +0000 @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=SAMBA Administration +Icon=/usr/share/samba/swat/images/samba.gif +Exec=firefox http://127.0.0.1/swat/ +Type=Application +Categories=System;