From da270ce2218b1c5d396f7a92d36c462192481c60 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 6 Aug 2015 12:03:53 +0000 Subject: main/freeradius: add json support to rest module it needs an ugly hack to find the header fixes #4511 (cherry picked from commit 8be40b15b63d279a0f1ce78e612e1f407dffcbe6) --- main/freeradius/APKBUILD | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'main') diff --git a/main/freeradius/APKBUILD b/main/freeradius/APKBUILD index c05215d454..6c91113b88 100644 --- a/main/freeradius/APKBUILD +++ b/main/freeradius/APKBUILD @@ -5,7 +5,7 @@ pkgname=freeradius _realname=freeradius pkgver=3.0.9 -pkgrel=0 +pkgrel=1 pkgdesc="RADIUS (Remote Authentication Dial-In User Service) server" url="http://freeradius.org/" arch="all" @@ -14,7 +14,7 @@ depends="" makedepends="openssl-dev mariadb-dev postgresql-dev gdbm-dev readline-dev bash libtool autoconf automake perl-dev python-dev openldap-dev krb5-dev unixodbc-dev linux-pam-dev sqlite-dev talloc-dev libpcap-dev - linux-headers curl-dev hiredis-dev" + linux-headers curl-dev hiredis-dev json-c-dev" pkggroups="radius" pkgusers="radius" install="$pkgname.pre-install" @@ -58,6 +58,10 @@ prepare() { build() { cd "$_builddir" + # freeradius requries json.h to be in a dir called 'json'. We fool + # the configure script with a symlink pointing to proper location. + ln -s /usr/include/json-c json + ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -87,6 +91,7 @@ build() { --without-rlm_sql_oracle \ --without-rlm_yubikey \ --without-rlm_ykclient \ + --with-jsonc-include-dir="$PWD" \ || return 1 make -j1 LDFLAGS="$LDFLAGS -lssl" || return 1 -- cgit v1.2.3