aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2014-07-11 13:56:39 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2014-07-11 13:57:09 +0000
commit1276848968556385c29acf2a9b821f7de9ee2f15 (patch)
treef629dacd29b8539461682ae9532eea999d8c4dc6 /testing
parent15dc9d67da3baaba547994fca07248ad202e80cc (diff)
downloadaports-1276848968556385c29acf2a9b821f7de9ee2f15.tar.bz2
aports-1276848968556385c29acf2a9b821f7de9ee2f15.tar.xz
testing/freeradius3: restore cert boostrap util and fix minor default config warnings
Diffstat (limited to 'testing')
-rw-r--r--testing/freeradius3/APKBUILD16
-rw-r--r--testing/freeradius3/disable-cert-generation.patch25
-rw-r--r--testing/freeradius3/freeradius3-301-default-config.patch34
3 files changed, 46 insertions, 29 deletions
diff --git a/testing/freeradius3/APKBUILD b/testing/freeradius3/APKBUILD
index ed0c380f0b..b8b3806794 100644
--- a/testing/freeradius3/APKBUILD
+++ b/testing/freeradius3/APKBUILD
@@ -3,7 +3,7 @@
pkgname=freeradius3
_realname=freeradius
pkgver=3.0.3
-pkgrel=2
+pkgrel=3
pkgdesc="RADIUS (Remote Authentication Dial-In User Service) server"
url="http://freeradius.org/"
arch="all"
@@ -48,7 +48,7 @@ prepare() {
done
update_config_sub || return 1
# remove certs generation
- rm -rf raddb/certs || return 1
+ # rm -rf raddb/certs || return 1
}
build() {
@@ -230,21 +230,21 @@ pam() {
md5sums="f031cdf90b94957b05a12468c95172d9 freeradius-server-3.0.3.tar.gz
fc6693f3df5a0694610110287a28568a freeradius3.confd
3a50b7f233e74daf3f87da63b3e9579d freeradius3.initd
-53b74f75456427a27df9f3489706ae3e freeradius3-301-default-config.patch
+c435af5de9bd8778c62eb5932d7faa6b freeradius3-301-default-config.patch
d86558365a1deea4914ed139797805b0 musl-fix-headers.patch
-f1e9c97b6ecbdc78ecd2ee84c6568997 disable-cert-generation.patch
+7097584dba2b344caf5c32475bf8da16 disable-cert-generation.patch
b3f62ccbba7aab3e7c009767372d71ed freeradius3-303-main-log-include.patch"
sha256sums="57e9932e5401670d0f0000080b942aee2cd6ca80422f76acd21f13a4be46335e freeradius-server-3.0.3.tar.gz
2d5b3e1af1299373182f2c8021bdf45c29db5d82b0a077b965a16ded32cb6292 freeradius3.confd
e173cce3b8a4c2ed4d1fdd58fff8ec21e9166f011ec052f5f4c01712493e72b3 freeradius3.initd
-472279b7831ea85a9d0a2237af8ee0c3235d01c53c08c6152633e6699f6c7990 freeradius3-301-default-config.patch
+64f67f4b552a68c28e2c01a450d9351ad2267977b704da7700878cc28366d498 freeradius3-301-default-config.patch
872aaebf86a663f819460d98924a9dc1f3e428facac6930dc98d1e442df1633f musl-fix-headers.patch
-d29ed64bcf4d514f254b782b821292d48c44f0dc1112948800f9d4b9229183eb disable-cert-generation.patch
+a72a0454f047bbbf258ffa90bd496e48cdfd95bc03a3863ab01750382ce566e3 disable-cert-generation.patch
37b3a67a9fe5a34d82fd6274b95732298561f19a0e7c81faf5ad0bf9a8f7874a freeradius3-303-main-log-include.patch"
sha512sums="a4fbb0a19f5946182c0cac6d62270db378674e48350c7c3b8f7d8a2a1b16c95c9b205af8d7ed22009b6392d4ab7cb251694d2593a39d9e4efc8eec9ff736bd01 freeradius-server-3.0.3.tar.gz
e248159c0a44f722e405c51c8015d9ad672e42ad0d38ca28f8a051ff911aa4d3e630b9bd4543e9d610940bc4ae50c022594e219ce341b36abe85c572acad418b freeradius3.confd
b29bf9090a2be7af77a3e104346a23024baf78a343e7f2fd6f6ddb02c223ac66d9b77c80d02b2cb26cbef2e64cb59c46462bb54b063b862e5a3a61c72653a63d freeradius3.initd
-459e47b74c4340edecd544bdb5e0b0720975c2aa7697d2237044812b7d42adb2818d1846b20af77f330972f77ae10f584c8767409202f3e39b2654ee31fd96ab freeradius3-301-default-config.patch
+c836b039328271d165ffddafad11b623cac52d912f0182d9fcfad36d880f43919e31d4dc8a66401f8f2cb7e73a601061b1f1fea875f2126fb868af1d95c4fbea freeradius3-301-default-config.patch
c49e5eec7497fccde5fd09dba1ea9b846e57bc88015bd81640aa531fb5c9b449f37136f42c85fe1d7940c5963aed664b85da28442b388c9fb8cc27873df03b2d musl-fix-headers.patch
-26cb001508bdcf315c4bbf233552bb386b7e9796e041c844296c4fb63965d134882d248efed1030b136fb75c69ac352fcc49b31f92973fa807b17db5375e2865 disable-cert-generation.patch
+d027627ac302c39de9342f5f97d2b44752e33d0def311aa5e140e9365b6a501cd5e4f311b1751d5efa3aa63666f07fc58bc222f95bba0a478a7828c6aea07770 disable-cert-generation.patch
1bf8587bfbf6109cfe8b34ffb4e3100d1d06be24678d9358c0cccc84e84e277822c01117bd4a038b11da35fcb86110588f5bd54177cbd632036977db3a53376d freeradius3-303-main-log-include.patch"
diff --git a/testing/freeradius3/disable-cert-generation.patch b/testing/freeradius3/disable-cert-generation.patch
index 8c739ec36f..3606c911cd 100644
--- a/testing/freeradius3/disable-cert-generation.patch
+++ b/testing/freeradius3/disable-cert-generation.patch
@@ -24,32 +24,17 @@
#
--- a/raddb/all.mk
+++ b/raddb/all.mk
-@@ -15,15 +15,9 @@
+@@ -18,9 +18,6 @@
+ LOCAL_CERT_FILES := Makefile README xpextensions \
+ ca.cnf server.cnf client.cnf bootstrap
- LOCAL_MODULES := $(addprefix raddb/mods-enabled/,$(DEFAULT_MODULES))
-
--LOCAL_CERT_FILES := Makefile README xpextensions \
-- ca.cnf server.cnf client.cnf bootstrap
--
-LOCAL_CERT_PRODUCTS := $(addprefix $(R)$(raddbdir)/certs/,ca.key ca.pem \
- client.key client.pem server.key server.pem)
-
LEGACY_LINKS := $(addprefix $(R)$(raddbdir)/,users huntgroups hints)
--RADDB_DIRS := certs mods-available mods-enabled policy.d \
-+RADDB_DIRS := mods-available mods-enabled policy.d \
- sites-available sites-enabled \
- $(patsubst raddb/%,%,$(shell find raddb/mods-config -type d -print))
-
-@@ -33,7 +27,6 @@
- # Grab files from the various subdirectories
- INSTALL_FILES := $(wildcard raddb/sites-available/* raddb/mods-available/*) \
- $(addprefix raddb/,$(LOCAL_FILES)) \
-- $(addprefix raddb/certs/,$(LOCAL_CERT_FILES)) \
- $(shell find raddb/mods-config -type f -print) \
- $(shell find raddb/policy.d -type f -print)
-
-@@ -111,15 +104,6 @@
+ RADDB_DIRS := certs mods-available mods-enabled policy.d \
+@@ -111,15 +108,6 @@
$(R)$(raddbdir)/users: $(R)$(modconfdir)/files/authorize
@[ -e $@ ] || echo LN-S $(patsubst $(R)$(raddbdir)/%,raddb/%,$@)
@[ -e $@ ] || ln -s $(patsubst $(R)$(raddbdir)/%,./%,$<) $@
diff --git a/testing/freeradius3/freeradius3-301-default-config.patch b/testing/freeradius3/freeradius3-301-default-config.patch
index 6308879327..34d55a8214 100644
--- a/testing/freeradius3/freeradius3-301-default-config.patch
+++ b/testing/freeradius3/freeradius3-301-default-config.patch
@@ -1,6 +1,37 @@
+--- a/raddb/policy.d/accounting
++++ b/raddb/policy.d/accounting
+@@ -34,7 +34,7 @@
+ #
+ if("%{string:Class}" =~ /${policy.class_value_prefix}([0-9a-f]{32})/i) {
+ update request {
+- Acct-Unique-Session-Id := "%{md5:%{1},%{Acct-Session-ID}}"
++ &Acct-Unique-Session-Id := "%{md5:%{1},%{Acct-Session-ID}}"
+ }
+ }
+
+@@ -46,7 +46,7 @@
+ #
+ else {
+ update request {
+- Acct-Unique-Session-Id := "%{md5:%{User-Name},%{Acct-Session-ID},%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}},%{NAS-Identifier},%{NAS-Port-ID},%{NAS-Port}}"
++ &Acct-Unique-Session-Id := "%{md5:%{User-Name},%{Acct-Session-ID},%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}},%{NAS-Identifier},%{NAS-Port-ID},%{NAS-Port}}"
+ }
+ }
+ }
+@@ -65,8 +65,8 @@
+ #
+ acct_counters64.preacct {
+ update request {
+- Acct-Input-Octets64 = "%{expr:(%{%{Acct-Input-Gigawords}:-0} * 4294967296) + %{%{Acct-Input-Octets}:-0}}"
+- Acct-Output-Octets64 = "%{expr:(%{%{Acct-Output-Gigawords}:-0} * 4294967296) + %{%{Acct-Output-Octets}:-0}}"
++ &Acct-Input-Octets64 = "%{expr:(%{%{Acct-Input-Gigawords}:-0} * 4294967296) + %{%{Acct-Input-Octets}:-0}}"
++ &Acct-Output-Octets64 = "%{expr:(%{%{Acct-Output-Gigawords}:-0} * 4294967296) + %{%{Acct-Output-Octets}:-0}}"
+ }
+ }
+
--- a/raddb/radiusd.conf.in
+++ b/raddb/radiusd.conf.in
-@@ -376,8 +376,8 @@
+@@ -415,8 +415,8 @@
# member. This can allow for some finer-grained access
# controls.
#
@@ -11,6 +42,7 @@
# Core dumps are a bad thing. This should only be set to
# 'yes' if you're debugging a problem with the server.
+Only in b: raddb/radiusd.conf.in.orig
--- a/raddb/sites-available/default
+++ b/raddb/sites-available/default
@@ -314,9 +314,9 @@