wok-next annotate krb5/receipt @ rev 8581
imported patch get/tty-clock
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Feb 13 22:57:57 2011 +0100 (2011-02-13) |
parents | 0e470e272b60 |
children | d1768332cee0 |
rev | line source |
---|---|
pascal@1335 | 1 # SliTaz package receipt. |
pascal@1335 | 2 |
pascal@1335 | 3 PACKAGE="krb5" |
rcx@5993 | 4 VERSION="1.8.3" |
pascal@1335 | 5 CATEGORY="security" |
pascal@1335 | 6 SHORT_DESC="Network authentication protocol with strong authentication." |
pascal@1335 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1335 | 8 TARBALL="$PACKAGE-$VERSION-signed.tar" |
pascal@1447 | 9 BUILD_DEPENDS="perl bison" |
pascal@1335 | 10 WEB_SITE="http://web.mit.edu/Kerberos/" |
pascal@5736 | 11 WGET_URL="${WEB_SITE}dist/$PACKAGE/${VERSION%.*}/$TARBALL" |
pascal@1335 | 12 DEPENDS="libkrb5" |
pascal@1335 | 13 CONFIG_FILES="/etc/krb5" |
pascal@1335 | 14 |
pascal@1335 | 15 # Rules to configure and make the package. |
pascal@1335 | 16 compile_rules() |
pascal@1335 | 17 { |
gokhlayeh@8226 | 18 [ -d $src/src ] || tar xzf $src/$PACKAGE-$VERSION.tar.gz |
pascal@1335 | 19 cd $src/src |
pascal@1335 | 20 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1335 | 21 --sysconfdir=/etc --localstatedir=/var \ |
pascal@1447 | 22 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@5783 | 23 make -j 4 && |
gokhlayeh@7970 | 24 make DESTDIR=$PWD/../_pkg install |
pascal@1335 | 25 } |
pascal@1335 | 26 |
pascal@1335 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1335 | 28 genpkg_rules() |
pascal@1335 | 29 { |
pascal@1335 | 30 mkdir -p $fs/usr $fs/etc |
pascal@1335 | 31 cp -a $_pkg/usr/share/examples/krb5 $fs/etc |
pascal@1335 | 32 cp -a $_pkg/usr/bin $fs/usr |
pascal@1335 | 33 cp -a $_pkg/usr/sbin $fs/usr |
pascal@1335 | 34 cp -a $_pkg/usr/lib $fs/usr |
gokhlayeh@7970 | 35 cat $WOK/$PACKAGE/stuff/*.files-list | while read file; do |
pascal@1335 | 36 rm -rf $fs$file |
pascal@1335 | 37 done |
pascal@1335 | 38 } |
pascal@1335 | 39 |
pascal@1335 | 40 # Pre and post install commands for Tazpkg. |
pascal@1335 | 41 post_install() |
pascal@1335 | 42 { |
pascal@1335 | 43 cat <<EOF |
pascal@1335 | 44 ---- |
pascal@1335 | 45 To start $PACKAGE server you can run : |
pascal@1335 | 46 |
pascal@1335 | 47 /etc/init.d/$PACKAGE start |
pascal@1335 | 48 |
pascal@1335 | 49 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pascal@1335 | 50 ---- |
pascal@1335 | 51 EOF |
pascal@1335 | 52 } |