wok-6.x view krb5/receipt @ rev 16471
gstreamer-1.0: update i?86 bdeps (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 22 06:52:14 2014 +0000 (2014-04-22) |
parents | 869f6481ce00 |
children | 77be6b57303b |
line source
1 # SliTaz package receipt.
3 PACKAGE="krb5"
4 VERSION="1.10.3"
5 CATEGORY="security"
6 SHORT_DESC="Network authentication protocol with strong authentication."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION-signed.tar"
10 WEB_SITE="http://web.mit.edu/Kerberos/"
11 WGET_URL="${WEB_SITE}dist/$PACKAGE/${VERSION:0:4}/$TARBALL"
12 CONFIG_FILES="/etc/krb5"
13 CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer"
14 CXXFLAGS="$CFLAGS"
16 DEPENDS="libkrb5"
17 BUILD_DEPENDS="perl bison"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 srcdir=$PACKAGE-$VERSION
23 [ -d $src/src ] || tar xzf $src/$srcdir.tar.gz
24 # This is for cookutils. If more than one file was extracted it create
25 # $PACKAGE-$VERSION to move files in it. Krb5 is the only package like
26 # that so we do the trick here.
27 if [ -d "$srcdir" -a -x /usr/bin/cook ]; then
28 mv $srcdir $CACHE && cd .. && rm -rf * && mv -f $CACHE/$srcdir .
29 else
30 mv $srcdir/* .
31 fi
32 cd $src/src
34 # FS#25384
35 sed -i "/KRB5ROOT=/s/\/local//" util/ac_check_krb5.m4
37 ./configure --localstatedir=/var $CONFIGURE_ARGS &&
38 make $MAKEFLAGS && make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr $fs/etc
45 cp -a $install/usr/share/examples/krb5 $fs/etc
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/sbin $fs/usr
48 cp -a $install/usr/lib $fs/usr
49 cat $stuff/*.files-list | while read file; do
50 rm -rf ${fs}$file
51 done
52 }
54 # Pre and post install commands for Tazpkg.
55 post_install()
56 {
57 cat <<EOF
58 ----
59 To start $PACKAGE server you can run :
61 /etc/init.d/$PACKAGE start
63 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
64 ----
65 EOF
66 }