[arch-commits] Commit in freeradius/repos (12 files)
Florian Pritz
bluewind at archlinux.org
Fri May 27 07:59:39 UTC 2016
Date: Friday, May 27, 2016 @ 09:59:39
Author: bluewind
Revision: 177177
db-move: moved freeradius from [community-staging] to [community-testing] (i686, x86_64)
Added:
freeradius/repos/community-testing-i686/
freeradius/repos/community-testing-i686/PKGBUILD
(from rev 177176, freeradius/repos/community-staging-i686/PKGBUILD)
freeradius/repos/community-testing-i686/freeradius.install
(from rev 177176, freeradius/repos/community-staging-i686/freeradius.install)
freeradius/repos/community-testing-i686/freeradius.service
(from rev 177176, freeradius/repos/community-staging-i686/freeradius.service)
freeradius/repos/community-testing-i686/freeradius.tmpfiles
(from rev 177176, freeradius/repos/community-staging-i686/freeradius.tmpfiles)
freeradius/repos/community-testing-x86_64/
freeradius/repos/community-testing-x86_64/PKGBUILD
(from rev 177176, freeradius/repos/community-staging-x86_64/PKGBUILD)
freeradius/repos/community-testing-x86_64/freeradius.install
(from rev 177176, freeradius/repos/community-staging-x86_64/freeradius.install)
freeradius/repos/community-testing-x86_64/freeradius.service
(from rev 177176, freeradius/repos/community-staging-x86_64/freeradius.service)
freeradius/repos/community-testing-x86_64/freeradius.tmpfiles
(from rev 177176, freeradius/repos/community-staging-x86_64/freeradius.tmpfiles)
Deleted:
freeradius/repos/community-staging-i686/
freeradius/repos/community-staging-x86_64/
----------------------------------------------+
community-testing-i686/PKGBUILD | 56 +++++++++++++++++++++++++
community-testing-i686/freeradius.install | 18 ++++++++
community-testing-i686/freeradius.service | 15 ++++++
community-testing-i686/freeradius.tmpfiles | 1
community-testing-x86_64/PKGBUILD | 56 +++++++++++++++++++++++++
community-testing-x86_64/freeradius.install | 18 ++++++++
community-testing-x86_64/freeradius.service | 15 ++++++
community-testing-x86_64/freeradius.tmpfiles | 1
8 files changed, 180 insertions(+)
Copied: freeradius/repos/community-testing-i686/PKGBUILD (from rev 177176, freeradius/repos/community-staging-i686/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-05-27 07:59:39 UTC (rev 177177)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Jason R Begley (jayray at digitalgoat.com>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+
+pkgname=freeradius
+pkgver=3.0.11
+pkgrel=3
+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' 'talloc' 'libpcap')
+makedepends=('unixodbc' 'python2' 'curl')
+optdepends=('unixodbc: for ODBC'
+ 'python2: for Python'
+ 'curl: for REST')
+options=('!makeflags')
+install=$pkgname.install
+source=("ftp://ftp.freeradius.org/pub/radius/freeradius-server-$pkgver.tar.bz2"
+ freeradius.tmpfiles
+ freeradius.service)
+md5sums=('e8a748fe824223ed488cc74a1645023e'
+ 'f959e89812bedfc9f8308076f78cd74e'
+ 'e3f18e3a25df3b692e59f60605354708')
+
+build() {
+ cd $srcdir/freeradius-server-$pkgver
+ ./configure --with-system-libtool --with-system-libltdl \
+ --prefix=/usr --enable-heimdal-krb5 \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --sbindir=/usr/bin \
+ --libdir=/usr/lib/freeradius \
+ --with-udpfromto
+ make
+}
+
+package() {
+ cd $srcdir/freeradius-server-$pkgver
+ make install R=$pkgdir
+ 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
+
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+ _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+ _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+ depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
+}
Copied: freeradius/repos/community-testing-i686/freeradius.install (from rev 177176, freeradius/repos/community-staging-i686/freeradius.install)
===================================================================
--- community-testing-i686/freeradius.install (rev 0)
+++ community-testing-i686/freeradius.install 2016-05-27 07:59:39 UTC (rev 177177)
@@ -0,0 +1,18 @@
+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
+ chown -R radiusd:radiusd etc/raddb
+ }
+
+ systemd-tmpfiles --create freeradius.conf
+}
+
+post_remove() {
+ echo "-- You may want to remove /var/lib/radiusd and /etc/raddb"
+}
Copied: freeradius/repos/community-testing-i686/freeradius.service (from rev 177176, freeradius/repos/community-staging-i686/freeradius.service)
===================================================================
--- community-testing-i686/freeradius.service (rev 0)
+++ community-testing-i686/freeradius.service 2016-05-27 07:59:39 UTC (rev 177177)
@@ -0,0 +1,15 @@
+[Unit]
+Description=FreeRADIUS high performance RADIUS server.
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/run/radiusd/radiusd.pid
+ExecStartPre=-/bin/chown -R radiusd.radiusd /run/radiusd
+ExecStartPre=/usr/bin/radiusd -C
+ExecStart=/usr/bin/radiusd -d /etc/raddb
+ExecReload=/usr/bin/radiusd -C
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
Copied: freeradius/repos/community-testing-i686/freeradius.tmpfiles (from rev 177176, freeradius/repos/community-staging-i686/freeradius.tmpfiles)
===================================================================
--- community-testing-i686/freeradius.tmpfiles (rev 0)
+++ community-testing-i686/freeradius.tmpfiles 2016-05-27 07:59:39 UTC (rev 177177)
@@ -0,0 +1 @@
+d /run/radiusd 0755 radiusd radiusd -
Copied: freeradius/repos/community-testing-x86_64/PKGBUILD (from rev 177176, freeradius/repos/community-staging-x86_64/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2016-05-27 07:59:39 UTC (rev 177177)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Jason R Begley (jayray at digitalgoat.com>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+
+pkgname=freeradius
+pkgver=3.0.11
+pkgrel=3
+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' 'talloc' 'libpcap')
+makedepends=('unixodbc' 'python2' 'curl')
+optdepends=('unixodbc: for ODBC'
+ 'python2: for Python'
+ 'curl: for REST')
+options=('!makeflags')
+install=$pkgname.install
+source=("ftp://ftp.freeradius.org/pub/radius/freeradius-server-$pkgver.tar.bz2"
+ freeradius.tmpfiles
+ freeradius.service)
+md5sums=('e8a748fe824223ed488cc74a1645023e'
+ 'f959e89812bedfc9f8308076f78cd74e'
+ 'e3f18e3a25df3b692e59f60605354708')
+
+build() {
+ cd $srcdir/freeradius-server-$pkgver
+ ./configure --with-system-libtool --with-system-libltdl \
+ --prefix=/usr --enable-heimdal-krb5 \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --sbindir=/usr/bin \
+ --libdir=/usr/lib/freeradius \
+ --with-udpfromto
+ make
+}
+
+package() {
+ cd $srcdir/freeradius-server-$pkgver
+ make install R=$pkgdir
+ 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
+
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+ _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+ _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+ depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
+}
Copied: freeradius/repos/community-testing-x86_64/freeradius.install (from rev 177176, freeradius/repos/community-staging-x86_64/freeradius.install)
===================================================================
--- community-testing-x86_64/freeradius.install (rev 0)
+++ community-testing-x86_64/freeradius.install 2016-05-27 07:59:39 UTC (rev 177177)
@@ -0,0 +1,18 @@
+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
+ chown -R radiusd:radiusd etc/raddb
+ }
+
+ systemd-tmpfiles --create freeradius.conf
+}
+
+post_remove() {
+ echo "-- You may want to remove /var/lib/radiusd and /etc/raddb"
+}
Copied: freeradius/repos/community-testing-x86_64/freeradius.service (from rev 177176, freeradius/repos/community-staging-x86_64/freeradius.service)
===================================================================
--- community-testing-x86_64/freeradius.service (rev 0)
+++ community-testing-x86_64/freeradius.service 2016-05-27 07:59:39 UTC (rev 177177)
@@ -0,0 +1,15 @@
+[Unit]
+Description=FreeRADIUS high performance RADIUS server.
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/run/radiusd/radiusd.pid
+ExecStartPre=-/bin/chown -R radiusd.radiusd /run/radiusd
+ExecStartPre=/usr/bin/radiusd -C
+ExecStart=/usr/bin/radiusd -d /etc/raddb
+ExecReload=/usr/bin/radiusd -C
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
Copied: freeradius/repos/community-testing-x86_64/freeradius.tmpfiles (from rev 177176, freeradius/repos/community-staging-x86_64/freeradius.tmpfiles)
===================================================================
--- community-testing-x86_64/freeradius.tmpfiles (rev 0)
+++ community-testing-x86_64/freeradius.tmpfiles 2016-05-27 07:59:39 UTC (rev 177177)
@@ -0,0 +1 @@
+d /run/radiusd 0755 radiusd radiusd -
More information about the arch-commits
mailing list