wok annotate freeradius/receipt @ rev 24439
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 13 18:01:32 2022 +0000 (2022-02-13) |
parents | b12961aba199 |
children | b53e18d1978e |
rev | line source |
---|---|
sdaigl@48 | 1 # SliTaz package receipt. |
sdaigl@48 | 2 |
sdaigl@48 | 3 PACKAGE="freeradius" |
Hans-G?nter@22777 | 4 VERSION="3.0.20" |
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@22777 | 16 libmysqlclient libssl libunixODBC python readline" |
Hans-G?nter@22777 | 17 BUILD_DEPENDS="gdbm-dev krb5-dev libpcap-dev libtool openldap-dev |
Hans-G?nter@22777 | 18 openssl-dev pam-dev talloc-dev" |
Hans-G?nter@22777 | 19 |
pascal@19366 | 20 CONFIG_FILES="/etc/raddb" |
sdaigl@48 | 21 |
pascal@24439 | 22 # What is the latest version available today? |
pascal@24439 | 23 current_version() |
pascal@24439 | 24 { |
pascal@24439 | 25 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24439 | 26 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24439 | 27 } |
pascal@24439 | 28 |
sdaigl@48 | 29 # Rules to configure and make the package. |
sdaigl@48 | 30 compile_rules() |
sdaigl@48 | 31 { |
slaxemulator@9374 | 32 export CFLAGS="$CFLAGS -fno-strict-aliasing" |
Hans-G?nter@22777 | 33 |
Hans-G?nter@22777 | 34 ./configure \ |
Hans-G?nter@22777 | 35 --sysconfdir=/etc \ |
Hans-G?nter@22777 | 36 --localstatedir=/var \ |
Hans-G?nter@22777 | 37 --with-system-libtool \ |
Hans-G?nter@22777 | 38 --with-system-libltdl \ |
slaxemulator@10332 | 39 $CONFIGURE_ARGS && |
gokhlayeh@9224 | 40 make -j1 && |
Hans-G?nter@22780 | 41 make -j1 R=$DESTDIR install |
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@22777 | 58 rm -f $fs/usr/lib/rlm_pam* $fs/etc/raddb/modules/pam |
Hans-G?nter@22777 | 59 cp -a $stuff/freeradius $fs/etc/init.d |
sdaigl@48 | 60 } |