wok-next annotate samba-pam/receipt @ rev 14772
Add some TAZPANEL_DAEMON
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jun 30 09:55:32 2013 +0200 (2013-06-30) |
parents | 4cba4433d0b7 |
children | 2b9f96603415 |
rev | line source |
---|---|
pascal@2190 | 1 # SliTaz package receipt. |
pascal@2190 | 2 |
pascal@2190 | 3 PACKAGE="samba-pam" |
slaxemulator@13268 | 4 VERSION="3.6.7" |
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@14772 | 12 TAZPANEL_DAEMON="man::samba|edit::/etc/samba/smb.conf|web::$WEB_SITE" |
pascal@2610 | 13 SUGGESTED="gamin" |
pascal@2190 | 14 CONFIG_FILES="/etc/samba" |
pascal@2190 | 15 PROVIDE="samba:pam" |
pascal@2190 | 16 BUGS="Open directory needs MIT kerberos support (krb5)" |
pascal@2190 | 17 |
pascal@14772 | 18 BUILD_DEPENDS="libldap openldap openldap-dev cups cups-dev pam pam-dev" |
pascal@14772 | 19 DEPENDS="libldap samba-common glibc-extra-samba ncursesw popt zlib cifs-utils acl pam perl cups krb5" |
pascal@14772 | 20 |
pascal@2190 | 21 # Rules to configure and make the package. |
pascal@2190 | 22 compile_rules() |
pascal@2190 | 23 { |
erjo@4784 | 24 cd $src/source3 |
pascal@2190 | 25 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@2190 | 26 --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \ |
pascal@2190 | 27 --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \ |
slaxemulator@13268 | 28 --enable-shared-libs --with-libtalloc --with-libtdb \ |
pascal@2190 | 29 --with-libsmbsharemodes --with-libsmbclient \ |
pascal@2190 | 30 --with-pam --with-pammodulesdir=/lib/security \ |
pascal@2190 | 31 --sysconfdir=/etc --localstatedir=/var \ |
pascal@2190 | 32 --mandir=/usr/share/man $CONFIGURE_ARGS && |
gokhlayeh@11574 | 33 make $MAKEFLAGS && |
slaxemulator@10342 | 34 make DESTDIR=$DESTDIR install || return 1 |
slaxemulator@13268 | 35 #rm -f $DESTDIR/usr/*bin/*.old |
slaxemulator@13268 | 36 #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0 |
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 |
slaxemulator@13268 | 43 cp -a $install/etc $fs |
slaxemulator@13268 | 44 cp -a $install/var $fs |
slaxemulator@13268 | 45 cp -a $install/lib $fs |
slaxemulator@13268 | 46 cp -a $install/usr/lib $fs/usr |
slaxemulator@13268 | 47 cp -a $install/usr/sbin $fs/usr |
slaxemulator@13268 | 48 cp -a $install/usr/bin $fs/usr |
slaxemulator@10342 | 49 cp -a $WOK/$SOURCE/stuff/etc $fs |
slaxemulator@10342 | 50 cat $WOK/$SOURCE/stuff/*.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 } |