[arch-commits] Commit in freeradius/repos (14 files)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon Mar 4 11:34:03 UTC 2013


    Date: Monday, March 4, 2013 @ 12:34:03
  Author: spupykin
Revision: 85632

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  freeradius/repos/community-staging-i686/
  freeradius/repos/community-staging-i686/PKGBUILD
    (from rev 85631, freeradius/trunk/PKGBUILD)
  freeradius/repos/community-staging-i686/freeradius.install
    (from rev 85631, freeradius/trunk/freeradius.install)
  freeradius/repos/community-staging-i686/freeradius.service
    (from rev 85631, freeradius/trunk/freeradius.service)
  freeradius/repos/community-staging-i686/freeradius.tmpfiles
    (from rev 85631, freeradius/trunk/freeradius.tmpfiles)
  freeradius/repos/community-staging-i686/krb5-build-fix.patch
    (from rev 85631, freeradius/trunk/krb5-build-fix.patch)
  freeradius/repos/community-staging-i686/radiusd
    (from rev 85631, freeradius/trunk/radiusd)
  freeradius/repos/community-staging-x86_64/
  freeradius/repos/community-staging-x86_64/PKGBUILD
    (from rev 85631, freeradius/trunk/PKGBUILD)
  freeradius/repos/community-staging-x86_64/freeradius.install
    (from rev 85631, freeradius/trunk/freeradius.install)
  freeradius/repos/community-staging-x86_64/freeradius.service
    (from rev 85631, freeradius/trunk/freeradius.service)
  freeradius/repos/community-staging-x86_64/freeradius.tmpfiles
    (from rev 85631, freeradius/trunk/freeradius.tmpfiles)
  freeradius/repos/community-staging-x86_64/krb5-build-fix.patch
    (from rev 85631, freeradius/trunk/krb5-build-fix.patch)
  freeradius/repos/community-staging-x86_64/radiusd
    (from rev 85631, freeradius/trunk/radiusd)

-----------------------------------------------+
 community-staging-i686/PKGBUILD               |   53 ++++++++++++++++++++++++
 community-staging-i686/freeradius.install     |   17 +++++++
 community-staging-i686/freeradius.service     |   15 ++++++
 community-staging-i686/freeradius.tmpfiles    |    1 
 community-staging-i686/krb5-build-fix.patch   |   21 +++++++++
 community-staging-i686/radiusd                |   43 +++++++++++++++++++
 community-staging-x86_64/PKGBUILD             |   53 ++++++++++++++++++++++++
 community-staging-x86_64/freeradius.install   |   17 +++++++
 community-staging-x86_64/freeradius.service   |   15 ++++++
 community-staging-x86_64/freeradius.tmpfiles  |    1 
 community-staging-x86_64/krb5-build-fix.patch |   21 +++++++++
 community-staging-x86_64/radiusd              |   43 +++++++++++++++++++
 12 files changed, 300 insertions(+)

Copied: freeradius/repos/community-staging-i686/PKGBUILD (from rev 85631, freeradius/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2013-03-04 11:34:03 UTC (rev 85632)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Jason R Begley (jayray at digitalgoat.com>
+
+pkgname=freeradius
+pkgver=2.2.0
+pkgrel=5
+pkgdesc="The premier open source RADIUS server"
+arch=('i686' 'x86_64')
+url="http://www.freeradius.org/"
+license=('GPL')
+depends=('krb5' 'pth' 'net-snmp' 'postgresql-libs' 'libmariadbclient')
+makedepends=('libpcap' 'unixodbc' 'python2')
+optdepends=('libpcap' 'unixodbc' 'python2')
+options=('!libtool' '!makeflags')
+install=$pkgname.install
+source=("ftp://ftp.freeradius.org/pub/radius/freeradius-server-$pkgver.tar.bz2"{,.sig}
+	radiusd
+	freeradius.tmpfiles
+	freeradius.service
+	krb5-build-fix.patch)
+md5sums=('0fb333fe6a64eb2b1dd6ef67f7bca119'
+         '5dd57af81ba075102581fec45316ba7b'
+         'f1a6530b1b69d2fa793aa45b2de379bb'
+         'f959e89812bedfc9f8308076f78cd74e'
+         '39eba6d34f8249781e9e917646465632'
+         'c6a61de7576933f59154a53bfc12a2d2')
+
+build() {
+  cd $srcdir/freeradius-server-$pkgver
+  export CFLAGS="$CFLAGS -fno-strict-aliasing"
+  sed -i 's/ -DKRB5_DEPRECATED//' src/modules/rlm_krb5/Makefile.in
+  patch -p1 <$srcdir/krb5-build-fix.patch
+  ./configure --with-system-libtool --with-system-libltdl \
+	      --prefix=/usr --enable-heimdal-krb5 \
+	      --localstatedir=/var \
+	      --sysconfdir=/etc \
+	      --libdir=/usr/lib/freeradius \
+	      --with-udpfromto
+  make
+}
+
+package() {
+  cd $srcdir/freeradius-server-$pkgver
+  make install R=$pkgdir
+  install -D -m755 ../radiusd $pkgdir/etc/rc.d/radiusd
+  chmod o+r $pkgdir/etc/raddb/*
+  mv $pkgdir/etc/raddb $pkgdir/etc/raddb.default
+  rm -rf $pkgdir/var/run
+
+  install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+  install -Dm0644 $srcdir/$pkgname.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf
+}

Copied: freeradius/repos/community-staging-i686/freeradius.install (from rev 85631, freeradius/trunk/freeradius.install)
===================================================================
--- community-staging-i686/freeradius.install	                        (rev 0)
+++ community-staging-i686/freeradius.install	2013-03-04 11:34:03 UTC (rev 85632)
@@ -0,0 +1,17 @@
+post_install() {
+    groupadd -r radiusd
+    useradd -r -m -d /var/lib/radiusd -g radiusd -s /bin/false radiusd
+
+    touch var/log/radius/radius.log
+    chown -R radiusd:radiusd var/log/radius/radius.log
+
+    [ -d etc/raddb ] || cp -a etc/raddb.default etc/raddb
+
+    true
+}
+
+post_remove() {
+    userdel radiusd
+    groupdel radiusd
+    true
+}

Copied: freeradius/repos/community-staging-i686/freeradius.service (from rev 85631, freeradius/trunk/freeradius.service)
===================================================================
--- community-staging-i686/freeradius.service	                        (rev 0)
+++ community-staging-i686/freeradius.service	2013-03-04 11:34:03 UTC (rev 85632)
@@ -0,0 +1,15 @@
+[Unit]
+Description=FreeRADIUS high performance RADIUS server.
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/radiusd/radiusd.pid
+ExecStartPre=-/bin/chown -R radiusd.radiusd /var/run/radiusd
+ExecStartPre=/usr/sbin/radiusd -C
+ExecStart=/usr/sbin/radiusd -d /etc/raddb
+ExecReload=/usr/sbin/radiusd -C
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target

Copied: freeradius/repos/community-staging-i686/freeradius.tmpfiles (from rev 85631, freeradius/trunk/freeradius.tmpfiles)
===================================================================
--- community-staging-i686/freeradius.tmpfiles	                        (rev 0)
+++ community-staging-i686/freeradius.tmpfiles	2013-03-04 11:34:03 UTC (rev 85632)
@@ -0,0 +1 @@
+d /run/radiusd 0755 radiusd radiusd -

Copied: freeradius/repos/community-staging-i686/krb5-build-fix.patch (from rev 85631, freeradius/trunk/krb5-build-fix.patch)
===================================================================
--- community-staging-i686/krb5-build-fix.patch	                        (rev 0)
+++ community-staging-i686/krb5-build-fix.patch	2013-03-04 11:34:03 UTC (rev 85632)
@@ -0,0 +1,21 @@
+diff -wbBur freeradius-server-2.1.10/src/modules/rlm_krb5/rlm_krb5.c freeradius-server-2.1.10.my/src/modules/rlm_krb5/rlm_krb5.c
+--- freeradius-server-2.1.10/src/modules/rlm_krb5/rlm_krb5.c	2010-09-28 11:03:56.000000000 +0000
++++ freeradius-server-2.1.10.my/src/modules/rlm_krb5/rlm_krb5.c	2011-04-29 09:26:10.000000000 +0000
+@@ -375,7 +375,7 @@
+ 	 * Heimdal krb5 verification
+ 	 */
+ 	radlog(L_AUTH, "rlm_krb5: Parsed name is: %s@%s\n",
+-	       *userP->name.name_string.val,
++	       "-" /* *userP->name.name_string.val*/,
+ 	       userP->realm);
+ 
+ 	krb5_cc_default(context, &id);
+@@ -390,7 +390,7 @@
+ 
+        radlog(L_AUTH, "rlm_krb5: failed verify_user: %s (%s@%s )",
+ 	      error_message(ret),
+-	      *userP->name.name_string.val,
++	      "-" /* *userP->name.name_string.val */,
+ 	      userP->realm);
+ 
+        return RLM_MODULE_REJECT;

Copied: freeradius/repos/community-staging-i686/radiusd (from rev 85631, freeradius/trunk/radiusd)
===================================================================
--- community-staging-i686/radiusd	                        (rev 0)
+++ community-staging-i686/radiusd	2013-03-04 11:34:03 UTC (rev 85632)
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/sbin/radiusd`
+case "$1" in
+  start)
+    stat_busy "Starting radiusd Server"
+
+    [ -d /var/run/radiusd ] || mkdir -p /var/run/radiusd
+    [ -f /var/run/radiusd/radiusd.pid ] || touch /var/run/radiusd/radiusd.pid
+    chown -R radiusd.radiusd /var/run/radiusd
+
+    [ -z "$PID" ] && /usr/sbin/radiusd
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      echo $PID > /var/run/radiusd.pid
+      add_daemon radiusd
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping radiusd Server"
+    [ ! -z "$PID" ]  && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm /var/run/radiusd.pid
+      rm_daemon radiusd
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"
+esac
+exit 0

Copied: freeradius/repos/community-staging-x86_64/PKGBUILD (from rev 85631, freeradius/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2013-03-04 11:34:03 UTC (rev 85632)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Jason R Begley (jayray at digitalgoat.com>
+
+pkgname=freeradius
+pkgver=2.2.0
+pkgrel=5
+pkgdesc="The premier open source RADIUS server"
+arch=('i686' 'x86_64')
+url="http://www.freeradius.org/"
+license=('GPL')
+depends=('krb5' 'pth' 'net-snmp' 'postgresql-libs' 'libmariadbclient')
+makedepends=('libpcap' 'unixodbc' 'python2')
+optdepends=('libpcap' 'unixodbc' 'python2')
+options=('!libtool' '!makeflags')
+install=$pkgname.install
+source=("ftp://ftp.freeradius.org/pub/radius/freeradius-server-$pkgver.tar.bz2"{,.sig}
+	radiusd
+	freeradius.tmpfiles
+	freeradius.service
+	krb5-build-fix.patch)
+md5sums=('0fb333fe6a64eb2b1dd6ef67f7bca119'
+         '5dd57af81ba075102581fec45316ba7b'
+         'f1a6530b1b69d2fa793aa45b2de379bb'
+         'f959e89812bedfc9f8308076f78cd74e'
+         '39eba6d34f8249781e9e917646465632'
+         'c6a61de7576933f59154a53bfc12a2d2')
+
+build() {
+  cd $srcdir/freeradius-server-$pkgver
+  export CFLAGS="$CFLAGS -fno-strict-aliasing"
+  sed -i 's/ -DKRB5_DEPRECATED//' src/modules/rlm_krb5/Makefile.in
+  patch -p1 <$srcdir/krb5-build-fix.patch
+  ./configure --with-system-libtool --with-system-libltdl \
+	      --prefix=/usr --enable-heimdal-krb5 \
+	      --localstatedir=/var \
+	      --sysconfdir=/etc \
+	      --libdir=/usr/lib/freeradius \
+	      --with-udpfromto
+  make
+}
+
+package() {
+  cd $srcdir/freeradius-server-$pkgver
+  make install R=$pkgdir
+  install -D -m755 ../radiusd $pkgdir/etc/rc.d/radiusd
+  chmod o+r $pkgdir/etc/raddb/*
+  mv $pkgdir/etc/raddb $pkgdir/etc/raddb.default
+  rm -rf $pkgdir/var/run
+
+  install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+  install -Dm0644 $srcdir/$pkgname.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf
+}

Copied: freeradius/repos/community-staging-x86_64/freeradius.install (from rev 85631, freeradius/trunk/freeradius.install)
===================================================================
--- community-staging-x86_64/freeradius.install	                        (rev 0)
+++ community-staging-x86_64/freeradius.install	2013-03-04 11:34:03 UTC (rev 85632)
@@ -0,0 +1,17 @@
+post_install() {
+    groupadd -r radiusd
+    useradd -r -m -d /var/lib/radiusd -g radiusd -s /bin/false radiusd
+
+    touch var/log/radius/radius.log
+    chown -R radiusd:radiusd var/log/radius/radius.log
+
+    [ -d etc/raddb ] || cp -a etc/raddb.default etc/raddb
+
+    true
+}
+
+post_remove() {
+    userdel radiusd
+    groupdel radiusd
+    true
+}

Copied: freeradius/repos/community-staging-x86_64/freeradius.service (from rev 85631, freeradius/trunk/freeradius.service)
===================================================================
--- community-staging-x86_64/freeradius.service	                        (rev 0)
+++ community-staging-x86_64/freeradius.service	2013-03-04 11:34:03 UTC (rev 85632)
@@ -0,0 +1,15 @@
+[Unit]
+Description=FreeRADIUS high performance RADIUS server.
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/radiusd/radiusd.pid
+ExecStartPre=-/bin/chown -R radiusd.radiusd /var/run/radiusd
+ExecStartPre=/usr/sbin/radiusd -C
+ExecStart=/usr/sbin/radiusd -d /etc/raddb
+ExecReload=/usr/sbin/radiusd -C
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target

Copied: freeradius/repos/community-staging-x86_64/freeradius.tmpfiles (from rev 85631, freeradius/trunk/freeradius.tmpfiles)
===================================================================
--- community-staging-x86_64/freeradius.tmpfiles	                        (rev 0)
+++ community-staging-x86_64/freeradius.tmpfiles	2013-03-04 11:34:03 UTC (rev 85632)
@@ -0,0 +1 @@
+d /run/radiusd 0755 radiusd radiusd -

Copied: freeradius/repos/community-staging-x86_64/krb5-build-fix.patch (from rev 85631, freeradius/trunk/krb5-build-fix.patch)
===================================================================
--- community-staging-x86_64/krb5-build-fix.patch	                        (rev 0)
+++ community-staging-x86_64/krb5-build-fix.patch	2013-03-04 11:34:03 UTC (rev 85632)
@@ -0,0 +1,21 @@
+diff -wbBur freeradius-server-2.1.10/src/modules/rlm_krb5/rlm_krb5.c freeradius-server-2.1.10.my/src/modules/rlm_krb5/rlm_krb5.c
+--- freeradius-server-2.1.10/src/modules/rlm_krb5/rlm_krb5.c	2010-09-28 11:03:56.000000000 +0000
++++ freeradius-server-2.1.10.my/src/modules/rlm_krb5/rlm_krb5.c	2011-04-29 09:26:10.000000000 +0000
+@@ -375,7 +375,7 @@
+ 	 * Heimdal krb5 verification
+ 	 */
+ 	radlog(L_AUTH, "rlm_krb5: Parsed name is: %s@%s\n",
+-	       *userP->name.name_string.val,
++	       "-" /* *userP->name.name_string.val*/,
+ 	       userP->realm);
+ 
+ 	krb5_cc_default(context, &id);
+@@ -390,7 +390,7 @@
+ 
+        radlog(L_AUTH, "rlm_krb5: failed verify_user: %s (%s@%s )",
+ 	      error_message(ret),
+-	      *userP->name.name_string.val,
++	      "-" /* *userP->name.name_string.val */,
+ 	      userP->realm);
+ 
+        return RLM_MODULE_REJECT;

Copied: freeradius/repos/community-staging-x86_64/radiusd (from rev 85631, freeradius/trunk/radiusd)
===================================================================
--- community-staging-x86_64/radiusd	                        (rev 0)
+++ community-staging-x86_64/radiusd	2013-03-04 11:34:03 UTC (rev 85632)
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/sbin/radiusd`
+case "$1" in
+  start)
+    stat_busy "Starting radiusd Server"
+
+    [ -d /var/run/radiusd ] || mkdir -p /var/run/radiusd
+    [ -f /var/run/radiusd/radiusd.pid ] || touch /var/run/radiusd/radiusd.pid
+    chown -R radiusd.radiusd /var/run/radiusd
+
+    [ -z "$PID" ] && /usr/sbin/radiusd
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      echo $PID > /var/run/radiusd.pid
+      add_daemon radiusd
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping radiusd Server"
+    [ ! -z "$PID" ]  && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm /var/run/radiusd.pid
+      rm_daemon radiusd
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"
+esac
+exit 0




More information about the arch-commits mailing list