wok-6.x annotate samba-pam/receipt @ rev 8842
Up: tazwok 4.2.1
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Fri Feb 25 00:21:51 2011 +0100 (2011-02-25) |
parents | 7157da8f2285 |
children | 129bb5b11a7e |
rev | line source |
---|---|
pascal@2190 | 1 # SliTaz package receipt. |
pascal@2190 | 2 |
pascal@2190 | 3 PACKAGE="samba-pam" |
slaxemulator@6618 | 4 VERSION="3.5.6" |
pascal@2190 | 5 CATEGORY="system-tools" |
pascal@2190 | 6 SHORT_DESC="File and print services with SMB/CIFS using PAM." |
pascal@2190 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2190 | 8 SOURCE="samba" |
pascal@2190 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2190 | 10 WEB_SITE="http://samba.org/" |
pascal@2192 | 11 WGET_URL="${WEB_SITE}$SOURCE/ftp/stable/$TARBALL" |
pascal@5148 | 12 BUILD_DEPENDS="libldap openldap openldap-dev cups cups-dev pam pam-dev" |
pascal@5148 | 13 DEPENDS="libldap samba-common glibc-extra-samba ncurses popt zlib smbfs acl pam perl cups" |
pascal@2610 | 14 SUGGESTED="gamin" |
pascal@2190 | 15 CONFIG_FILES="/etc/samba" |
pascal@2190 | 16 PROVIDE="samba:pam" |
pascal@2190 | 17 BUGS="Open directory needs MIT kerberos support (krb5)" |
slaxemulator@8432 | 18 SRC_WANTED="$SOURCE" |
pascal@2190 | 19 |
pascal@2190 | 20 # Rules to configure and make the package. |
pascal@2190 | 21 compile_rules() |
pascal@2190 | 22 { |
erjo@4784 | 23 cd $src/source3 |
pascal@2190 | 24 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@2190 | 25 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \ |
pascal@2190 | 26 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \ |
slaxemulator@6367 | 27 --enable-shared-libs --with-libtalloc --with-libtdb --with-cifsumount \ |
pascal@2190 | 28 --with-libsmbsharemodes --with-libsmbclient \ |
pascal@2190 | 29 --with-pam --with-pammodulesdir=/lib/security \ |
pascal@2190 | 30 --sysconfdir=/etc --localstatedir=/var \ |
pascal@2190 | 31 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@5777 | 32 make -j 4 && |
pascal@2190 | 33 make DESTDIR=$PWD/../_pkg install || return 1 |
pascal@2190 | 34 rm -f ../_pkg/usr/*bin/*.old |
pascal@5148 | 35 #ln -s libwbclient.so $PWD/../_pkg/usr/lib/libwbclient.so.0 |
pascal@2287 | 36 cp ../../../$SOURCE/stuff/*.files-list .. |
pascal@2190 | 37 } |
pascal@2190 | 38 |
pascal@2190 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2190 | 40 genpkg_rules() |
pascal@2190 | 41 { |
pascal@2190 | 42 mkdir -p $fs/usr |
pascal@2190 | 43 cp -a $_pkg/etc $fs |
pascal@2190 | 44 cp -a $_pkg/var $fs |
pascal@2428 | 45 cp -a $_pkg/lib $fs |
pascal@2190 | 46 cp -a $_pkg/usr/lib $fs/usr |
pascal@2190 | 47 cp -a $_pkg/usr/sbin $fs/usr |
pascal@2190 | 48 cp -a $_pkg/usr/bin $fs/usr |
pascal@2287 | 49 cp -a ../$SOURCE/stuff/etc $fs |
pascal@2190 | 50 cat $src/*.files-list | while read file; do |
pascal@2190 | 51 rm -rf $fs$file |
pascal@2190 | 52 done |
pascal@2190 | 53 } |
pascal@2190 | 54 |
pascal@2190 | 55 # Pre and post install commands for Tazpkg. |
pascal@2190 | 56 post_install() |
pascal@2190 | 57 { |
pascal@2190 | 58 cat <<EOF |
pascal@2190 | 59 ---- |
pascal@2190 | 60 The main configuration file is /etc/samba/smb.conf |
pascal@2190 | 61 ---- |
pascal@2190 | 62 To start $PACKAGE server you can run : |
pascal@2190 | 63 |
pascal@2190 | 64 /etc/init.d/$PACKAGE start |
pascal@2190 | 65 |
pascal@2190 | 66 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pascal@2190 | 67 ---- |
pascal@2190 | 68 EOF |
pascal@2190 | 69 } |