From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2464C1395E3 for ; Sat, 26 Nov 2016 22:29:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2DA78E0B60; Sat, 26 Nov 2016 22:29:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0EB1FE0944 for ; Sat, 26 Nov 2016 22:29:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4BF07341375 for ; Sat, 26 Nov 2016 22:29:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DFA9F1F2F for ; Sat, 26 Nov 2016 22:28:59 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1480199237.4c3aa39b372aab04214d850034ca822071ea6e05.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dialup/freeradius/, net-dialup/freeradius/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dialup/freeradius/files/freeradius.service net-dialup/freeradius/files/freeradius.tmpfiles net-dialup/freeradius/freeradius-3.0.12-r1.ebuild X-VCS-Directories: net-dialup/freeradius/ net-dialup/freeradius/files/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 4c3aa39b372aab04214d850034ca822071ea6e05 X-VCS-Branch: master Date: Sat, 26 Nov 2016 22:28:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ff2d2486-c910-474b-8572-9966ef77b416 X-Archives-Hash: 93de245d965fa65aae9896cc4f7da609 commit: 4c3aa39b372aab04214d850034ca822071ea6e05 Author: Matt Turner gentoo org> AuthorDate: Sat Nov 26 21:47:22 2016 +0000 Commit: Matt Turner gentoo org> CommitDate: Sat Nov 26 22:27:17 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c3aa39b net-dialup/freeradius: Add systemd unit files. Bug: https://bugs.gentoo.org/show_bug.cgi?id=543464 net-dialup/freeradius/files/freeradius.service | 15 +++++++++++++++ net-dialup/freeradius/files/freeradius.tmpfiles | 1 + net-dialup/freeradius/freeradius-3.0.12-r1.ebuild | 7 ++++--- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/net-dialup/freeradius/files/freeradius.service b/net-dialup/freeradius/files/freeradius.service new file mode 100644 index 00000000..5304f07 --- /dev/null +++ b/net-dialup/freeradius/files/freeradius.service @@ -0,0 +1,15 @@ +[Unit] +Description=FreeRADIUS high performance RADIUS server. +After=syslog.target network.target + +[Service] +Type=simple +PIDFile=/run/radiusd/radiusd.pid +ExecStartPre=-/bin/chown -R radius.radius /run/radiusd +ExecStartPre=/usr/sbin/radiusd -C +ExecStart=/usr/sbin/radiusd -d /etc/raddb -f +ExecReload=/usr/sbin/radiusd -C +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target diff --git a/net-dialup/freeradius/files/freeradius.tmpfiles b/net-dialup/freeradius/files/freeradius.tmpfiles new file mode 100644 index 00000000..21620c9 --- /dev/null +++ b/net-dialup/freeradius/files/freeradius.tmpfiles @@ -0,0 +1 @@ +d /run/radiusd 0755 radius radius - diff --git a/net-dialup/freeradius/freeradius-3.0.12-r1.ebuild b/net-dialup/freeradius/freeradius-3.0.12-r1.ebuild index f69459b..dedda6b 100644 --- a/net-dialup/freeradius/freeradius-3.0.12-r1.ebuild +++ b/net-dialup/freeradius/freeradius-3.0.12-r1.ebuild @@ -5,9 +5,7 @@ EAPI=6 PYTHON_COMPAT=( python2_7 ) -inherit autotools eutils pam python-any-r1 user - -#PATCHSET=4 +inherit autotools eutils pam python-any-r1 systemd user MY_P="${PN}-server-${PV}" @@ -200,6 +198,9 @@ src_install() { newinitd "${FILESDIR}/radius.init-r3" radiusd newconfd "${FILESDIR}/radius.conf-r4" radiusd + systemd_newtmpfilesd "${FILESDIR}"/freeradius.tmpfiles freeradius.conf + systemd_dounit "${FILESDIR}"/freeradius.service + prune_libtool_files }