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