wok view freeradius/receipt @ rev 24924

Add as & asxxxx
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 13 10:27:34 2022 +0000 (2022-04-13)
parents b53e18d1978e
children 5db546345599
line source
1 # SliTaz package receipt.
3 PACKAGE="freeradius"
4 VERSION="3.0.25"
5 CATEGORY="security"
6 SHORT_DESC="Radius server."
7 MAINTAINER="sdaigl@lacitec.on.ca"
8 LICENSE="GPL2 LGPL2"
9 WEB_SITE="https://www.freeradius.org/"
11 SOURCE="freeradius-server"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="ftp://ftp.freeradius.org/pub/radius/$TARBALL"
15 DEPENDS="cyrus-sasl gdbm libcomerr3 libkrb5 libldap libltdl
16 libmysqlclient libpcap libssl libunixODBC python readline
17 talloc"
18 BUILD_DEPENDS="gdbm-dev krb5-dev libpcap-dev libtool openldap-dev
19 openssl-dev pam-dev talloc-dev"
21 CONFIG_FILES="/etc/raddb"
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - https://github.com/FreeRADIUS/freeradius-server/releases 2>/dev/null | \
27 sed '/archive.*tar/!d;s|.*/[a-z_]*\(.*\).tar.*|\1|;s|_|.|g;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 ./configure \
34 CFLAGS="$CFLAGS -fno-strict-aliasing" \
35 --sysconfdir=/etc \
36 --localstatedir=/var \
37 --with-system-libtool \
38 --with-system-libltdl \
39 $CONFIGURE_ARGS &&
40 make -j 1 &&
41 make install -j 1 R=$DESTDIR
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 mkdir -p $fs/usr/share
49 mkdir -p $fs/etc/init.d
50 mkdir -p $fs/var/run/radiusd
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/sbin $fs/usr
54 cp -a $install/usr/lib/*.so* $fs/usr/lib
55 cp -a $install/usr/share/freeradius $fs/usr/share
56 cp -a $install/etc $fs
57 cp -a $install/var $fs
58 rm -f $fs/usr/lib/rlm_pam*
59 rm -f $fs/etc/raddb/modules/pam
60 cp -a $stuff/freeradius $fs/etc/init.d
61 }