aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2010-05-30 05:18:02 +0800
committerwxs <wxs@FreeBSD.org>2010-05-30 05:18:02 +0800
commitddbf098920d81df34b8315fcb5382a0a5634130c (patch)
tree05a03018c8ea10f128acb80875384b4b16f97959 /net
parent89ff9ddd01ebd357aba2aa9b0b4b9a8c2354b1db (diff)
downloadfreebsd-ports-gnome-ddbf098920d81df34b8315fcb5382a0a5634130c.tar.gz
freebsd-ports-gnome-ddbf098920d81df34b8315fcb5382a0a5634130c.tar.zst
freebsd-ports-gnome-ddbf098920d81df34b8315fcb5382a0a5634130c.zip
Update to 2.1.9
Use USE_GMAKE instead of RUN_DEPENDS Use ${FILESDIR} for EXTRA_PATCHES Use USERS and GROUPS and simply pkg-install.in and update pkg-message to reflect these new changes. PR: ports/147188 Submitted by: Ryan Steinmetz <rpsfa@rit.edu> (maintainer)
Diffstat (limited to 'net')
-rw-r--r--net/freeradius2/Makefile46
-rw-r--r--net/freeradius2/distinfo6
-rw-r--r--net/freeradius2/files/pkg-deinstall.in8
-rw-r--r--net/freeradius2/files/pkg-install.in87
-rw-r--r--net/freeradius2/pkg-plist2
5 files changed, 24 insertions, 125 deletions
diff --git a/net/freeradius2/Makefile b/net/freeradius2/Makefile
index 77bf61d71a1a..ee5905b9dc78 100644
--- a/net/freeradius2/Makefile
+++ b/net/freeradius2/Makefile
@@ -8,8 +8,7 @@
#
PORTNAME= freeradius
-DISTVERSION= 2.1.8
-PORTREVISION= 1
+DISTVERSION= 2.1.9
CATEGORIES= net
MASTER_SITES= ftp://ftp.freeradius.org/pub/freeradius/%SUBDIR%/ \
ftp://ftp.ntua.gr/pub/net/radius/freeradius/%SUBDIR%/ \
@@ -22,9 +21,10 @@ DISTNAME= freeradius-server-${DISTVERSION}
MAINTAINER= rpsfa@rit.edu
COMMENT= A free RADIUS server implementation
-RUN_DEPENDS= gmake:${PORTSDIR}/devel/gmake
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm
+USE_GMAKE= yes
+
USE_BZIP2= yes
LOGDIR?= /var/log
@@ -68,6 +68,13 @@ SUB_LIST+= RUN_AS_USER="yes"
SUB_LIST+= RUN_AS_USER="no"
.endif
+# User and group to use if USER option is chosen
+RADIUS_USER= freeradius
+RADIUS_GROUP= freeradius
+
+USERS= ${RADIUS_USER}
+GROUPS= ${RADIUS_GROUP}
+
.if defined(WITH_HEIMDAL) && !defined(WITH_KERBEROS)
WITH_KERBEROS= yes
.endif
@@ -207,7 +214,7 @@ WITH_EXPERIMENTAL= yes
# Oracle support is experimental under FreeBSD
.ifdef(WITH_OCI8)
-EXTRA_PATCHES+= files/extra-patch-exec.c
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-exec.c
CONFIGURE_ENV= ORACLE_HOME="${ORACLE_HOME}"
ORACLE_HOME?= ${LOCALBASE}/oracle8-client
BUILD_DEPENDS+= ${ORACLE_HOME}/lib/libclntst8.a:${PORTSDIR}/databases/oracle8-client
@@ -237,10 +244,6 @@ CFLAGS!= ${ECHO} ${CFLAGS} | ${SED} -Ee 's:-O[0-9]?[[:space:]]*::g'
BROKEN= Does not build on sparc64-6
.endif
-# User and group to use if USER option is chosen
-USER= freeradius
-GROUP= freeradius
-
FREERADIUS_LIBDIR= lib/freeradius-${PORTVERSION}
PLIST_SUB+= LIBDIR="${FREERADIUS_LIBDIR}"
USE_LDCONFIG= ${PREFIX}/${FREERADIUS_LIBDIR}
@@ -280,31 +283,8 @@ CONFIGURE_ARGS+=--without-rlm_eap_ikev2 \
CONFIGURE_ARGS+= --with-pic
.endif
-# Credentials for WITH_USER are RADIUS_USER, RADIUS_UID, RADIUS_GECOS,
-# RADIUS_HOME, RADIUS_SHELL, RADIUS_GROUP and RADIUS_GID.
-
-# Parse ${PORTSDIR}/UIDs and GIDs for the defaults
-USERCREDS!= ${GREP} -E '^${USER}:' ${PORTSDIR}/UIDs | \
- ${SED} -Ee 's/^([^:]*):([^:]*):([^:]*):([^:]*)::0:0:([^:]*):([^:]*):([^:]*)$$/USER="\1" UID="\3" GECOS="\5" HOME="\6" SHELL="\7"/'
-GROUPCREDS!= ${GREP} -E '^${GROUP}:' ${PORTSDIR}/GIDs | \
- ${SED} -Ee 's/^([^:]*):([^:]*):([^:]*):$$/GROUP="\1" GID="\3"/'
-
-# Apply the defaults where necessary
-RADIUS_USER?= ${USERCREDS:MUSER*:C/^[^=]*=\"([^\"]*)\"$/\1/}
-RADIUS_UID?= ${USERCREDS:MUID*:C/^[^=]*=\"([^\"]*)\"$/\1/}
-RADIUS_GECOS?= ${USERCREDS:MGECOS*:C/^[^=]*=\"([^\"]*)\"$/\1/}
-RADIUS_HOME?= ${USERCREDS:MHOME*:C/^[^=]*=\"([^\"]*)\"$/\1/}
-RADIUS_SHELL?= ${USERCREDS:MSHELL*:C/^[^=]*=\"([^\"]*)\"$/\1/}
-RADIUS_GROUP?= ${GROUPCREDS:MGROUP*:C/^[^=]*=\"([^\"]*)\"$/\1/}
-RADIUS_GID?= ${GROUPCREDS:MGID*:C/^[^=]*=\"([^\"]*)\"$/\1/}
-
-SUB_LIST+= USER="${RADIUS_USER}" \
- UID="${RADIUS_UID}" \
- GECOS="${RADIUS_GECOS}" \
- HOME="${RADIUS_HOME}" \
- SHELL="${RADIUS_SHELL}" \
- GROUP="${RADIUS_GROUP}" \
- GID="${RADIUS_GID}" \
+SUB_LIST+= RADIUS_USER="${RADIUS_USER}" \
+ RADIUS_GROUP="${RADIUS_GROUP}" \
RADDB_WORK="${WRKSRC}/raddb" \
RADDB="${PREFIX}/etc/raddb" \
LOGDIR="${LOGDIR}" \
diff --git a/net/freeradius2/distinfo b/net/freeradius2/distinfo
index 79d1cc27a7c0..0f7c1dd581a4 100644
--- a/net/freeradius2/distinfo
+++ b/net/freeradius2/distinfo
@@ -1,3 +1,3 @@
-MD5 (freeradius-server-2.1.8.tar.bz2) = d326525490bfba273471d77560471fcb
-SHA256 (freeradius-server-2.1.8.tar.bz2) = 9329607d8082f8d7197b7ebad23a83c5239fb129c68b9cab43a3752300708d22
-SIZE (freeradius-server-2.1.8.tar.bz2) = 2544696
+MD5 (freeradius-server-2.1.9.tar.bz2) = 5e16a0869acdf448b191c7e30f6507d8
+SHA256 (freeradius-server-2.1.9.tar.bz2) = b0b7c5fe334e826e2f643569485ce203520ecb1d058d42b8df2a94a73acb05b1
+SIZE (freeradius-server-2.1.9.tar.bz2) = 2524497
diff --git a/net/freeradius2/files/pkg-deinstall.in b/net/freeradius2/files/pkg-deinstall.in
index 97b1e007ba9d..a5bf3c2778e6 100644
--- a/net/freeradius2/files/pkg-deinstall.in
+++ b/net/freeradius2/files/pkg-deinstall.in
@@ -9,15 +9,15 @@ case $2 in
If you are not upgrading and don't intend to use
FreeRADIUS any more then you may wish to delete
-the %%GROUP%% group, which can be done with the
+the %%RADIUS_GROUP%% group, which can be done with the
following command:
- # pw groupdel %%GROUP%%
+ # pw groupdel %%RADIUS_GROUP%%
-You may also wish to delete the %%USER%% user,
+You may also wish to delete the %%RADIUS_USER%% user,
which can be done with the following command:
- # pw userdel %%USER%%
+ # pw userdel %%RADIUS_USER%%
EOMSG
;;
esac
diff --git a/net/freeradius2/files/pkg-install.in b/net/freeradius2/files/pkg-install.in
index e4c8e0aec219..ed8c6f0856f9 100644
--- a/net/freeradius2/files/pkg-install.in
+++ b/net/freeradius2/files/pkg-install.in
@@ -3,14 +3,8 @@
PATH=/usr/sbin:/usr/bin:/bin ; export PATH
-radius_user="%%USER%%"
-radius_uid="%%UID%%"
-radius_gecos="%%GECOS%%"
-radius_home="%%HOME%%"
-radius_shell="%%SHELL%%"
-
-radius_group="%%GROUP%%"
-radius_gid="%%GID%%"
+radius_user="%%RADIUS_USER%%"
+radius_group="%%RADIUS_GROUP%%"
radius_raddb_work="%%RADDB_WORK%%"
radius_raddb="%%RADDB%%"
@@ -20,87 +14,10 @@ radius_libdir="%%LIBDIR%%"
radius_run_as_user="%%RUN_AS_USER%%"
-create_group() {
- local user uid group gid gecos home shell
-
- user=$1
- uid=$2
- group=$3
- gid=$4
- gecos=$5
- home=$6
- shell=$7
-
-
- if pw group show -n $group >/dev/null 2>&1 ; then
- echo "===> Using existing group $group"
- else
- if pw groupadd -n $group -g $gid ; then
- echo "===> Created group $group"
- else
- cat <<-EOERRORMSG
-*** Failed to create group $group.
-
-Please add user $user and group $group
-manually with the following commands:
-
- pw groupadd -n $group -g $gid
- pw useradd -n $user -u $uid -g $group -c "$gecos" \\
- -d $home -s $shell -h -
-
-and retry installing this package.
-EOERRORMSG
- exit 1
- fi
- fi
-
-}
-
-
-create_user() {
- local user uid group gid gecos home shell
-
- user=$1
- uid=$2
- group=$3
- gid=$4
- gecos=$5
- home=$6
- shell=$7
-
- if pw user show -n $user >/dev/null 2>&1 ; then
- echo "===> Using existing user $user"
- else
- if pw useradd -n $user -u $uid -g $group -c "$gecos" \
- -d $home -s $shell -h - ; then
- echo "===> Created user $user"
- else
- cat <<-EOERRORMSG
-*** Failed to create user $user.
-
-Please add user $user manually with the following command:
-
- pw useradd -n $user -u $uid -g $group -c "$gecos" \\
- -d $home -s $shell -h -
-
-and retry installing this package.
-EOERRORMSG
- exit 1
- fi
- fi
-}
-
-
if [ ${radius_run_as_user} != "yes" ]; then exit 0; fi
case $2 in
PRE-INSTALL)
- # Create the radius user and group if they do not already exist
- create_group $radius_user $radius_uid $radius_group $radius_gid \
- "$radius_gecos" $radius_home $radius_shell
- create_user $radius_user $radius_uid $radius_group $radius_gid \
- "$radius_gecos" $radius_home $radius_shell
-
# Fix the user and group in raddb/radiusd.conf
echo "===> Setting user and group in radiusd.conf"
for file in ${radius_raddb_work}/radiusd.conf ${radius_raddb}/radiusd.conf; do
diff --git a/net/freeradius2/pkg-plist b/net/freeradius2/pkg-plist
index 11e0eaed3996..ad204a9637c7 100644
--- a/net/freeradius2/pkg-plist
+++ b/net/freeradius2/pkg-plist
@@ -85,6 +85,7 @@ bin/smbencrypt
%%EXAMPLESDIR%%/raddb/radiusd.conf
%%EXAMPLESDIR%%/raddb/sites-available/README
%%EXAMPLESDIR%%/raddb/sites-available/buffered-sql
+%%EXAMPLESDIR%%/raddb/sites-available/coa
%%EXAMPLESDIR%%/raddb/sites-available/control-socket
%%EXAMPLESDIR%%/raddb/sites-available/copy-acct-to-home-server
%%EXAMPLESDIR%%/raddb/sites-available/decoupled-accounting
@@ -749,6 +750,7 @@ include/freeradius/vqp.h
%%DATADIR%%/dictionary.vqp
%%DATADIR%%/dictionary.walabi
%%DATADIR%%/dictionary.waverider
+%%DATADIR%%/dictionary.wichorus
%%DATADIR%%/dictionary.wimax
%%DATADIR%%/dictionary.wispr
%%DATADIR%%/dictionary.xedia