wok-6.x annotate freeradius/receipt @ rev 19644
dev86: update post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 21 15:22:15 2017 +0100 (2017-01-21) |
parents | 7bb096863642 |
children | 2007d47b8aba |
rev | line source |
---|---|
sdaigl@48 | 1 # SliTaz package receipt. |
sdaigl@48 | 2 |
sdaigl@48 | 3 PACKAGE="freeradius" |
pascal@12433 | 4 VERSION="2.1.12" |
sdaigl@48 | 5 CATEGORY="security" |
sdaigl@48 | 6 SHORT_DESC="radius server" |
pascal@13027 | 7 MAINTAINER="sdaigl@lacitec.on.ca" |
pascal@15215 | 8 LICENSE="GPL2 LGPL2" |
pascal@1302 | 9 SOURCE="freeradius-server" |
pascal@1302 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pankso@138 | 11 WEB_SITE="http://www.freeradius.org/" |
pascal@12433 | 12 WGET_URL="ftp://ftp.freeradius.org/pub/freeradius/$TARBALL" |
pascal@19366 | 13 CONFIG_FILES="/etc/raddb" |
sdaigl@48 | 14 |
slaxemulator@10815 | 15 DEPENDS="libssl cyrus-sasl libldap libltdl python readline libunixODBC \ |
erjo@9962 | 16 libkrb5 libcomerr3 libmysqlclient gdbm" |
pascal@12450 | 17 BUILD_DEPENDS="libtool openldap-dev openssl-dev pam-dev krb5-dev gdbm-dev \ |
pascal@12450 | 18 libtool" |
erjo@9962 | 19 |
sdaigl@48 | 20 # Rules to configure and make the package. |
sdaigl@48 | 21 compile_rules() |
sdaigl@48 | 22 { |
slaxemulator@9374 | 23 export CFLAGS="$CFLAGS -fno-strict-aliasing" |
slaxemulator@9374 | 24 ./configure --sysconfdir=/etc \ |
sdaigl@48 | 25 --localstatedir=/var \ |
slaxemulator@9374 | 26 --with-system-libtool \ |
slaxemulator@10332 | 27 --with-system-libltdl \ |
slaxemulator@10332 | 28 $CONFIGURE_ARGS && |
gokhlayeh@9224 | 29 make -j1 && |
gokhlayeh@9224 | 30 make R=$DESTDIR install |
sdaigl@48 | 31 } |
sdaigl@48 | 32 |
sdaigl@48 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
sdaigl@48 | 34 genpkg_rules() |
sdaigl@48 | 35 { |
pascal@19366 | 36 mkdir -p $fs/usr/lib $fs/usr/share $fs/etc/init.d $fs/var/run/radiusd |
sdaigl@48 | 37 |
pascal@15215 | 38 cp -a $install/usr/bin $fs/usr |
pascal@15215 | 39 cp -a $install/usr/sbin $fs/usr |
pascal@15215 | 40 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@15215 | 41 cp -a $install/usr/share/freeradius $fs/usr/share |
pascal@15215 | 42 cp -a $install/etc $fs |
pascal@15215 | 43 cp -a $install/var $fs |
pascal@2226 | 44 rm -f $fs/usr/lib/rlm_pam* $fs/etc/raddb/modules/pam |
pascal@19366 | 45 cp -a $stuff/freeradius $fs/etc/init.d/ |
sdaigl@48 | 46 } |