wok-next view freeradius/receipt @ rev 20155
uclibc-cross-compiler-x86_64: receipt v2 (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 01 15:25:12 2017 +0100 (2017-11-01) |
parents | 7bb096863642 |
children | 384441c3ddea |
line source
1 # SliTaz package receipt.
3 PACKAGE="freeradius"
4 VERSION="2.1.12"
5 CATEGORY="security"
6 SHORT_DESC="radius server"
7 MAINTAINER="sdaigl@lacitec.on.ca"
8 LICENSE="GPL2 LGPL2"
9 SOURCE="freeradius-server"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.freeradius.org/"
12 WGET_URL="ftp://ftp.freeradius.org/pub/freeradius/$TARBALL"
13 CONFIG_FILES="/etc/raddb"
15 DEPENDS="libssl cyrus-sasl libldap libltdl python readline libunixODBC \
16 libkrb5 libcomerr3 libmysqlclient gdbm"
17 BUILD_DEPENDS="libtool openldap-dev openssl-dev pam-dev krb5-dev gdbm-dev \
18 libtool"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 export CFLAGS="$CFLAGS -fno-strict-aliasing"
24 ./configure --sysconfdir=/etc \
25 --localstatedir=/var \
26 --with-system-libtool \
27 --with-system-libltdl \
28 $CONFIGURE_ARGS &&
29 make -j1 &&
30 make R=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib $fs/usr/share $fs/etc/init.d $fs/var/run/radiusd
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/sbin $fs/usr
40 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 cp -a $install/usr/share/freeradius $fs/usr/share
42 cp -a $install/etc $fs
43 cp -a $install/var $fs
44 rm -f $fs/usr/lib/rlm_pam* $fs/etc/raddb/modules/pam
45 cp -a $stuff/freeradius $fs/etc/init.d/
46 }