[arch-commits] Commit in exabgp/repos/community-any (6 files)
Sébastien Luttringer
seblu at nymeria.archlinux.org
Mon Feb 4 14:11:57 UTC 2013
Date: Monday, February 4, 2013 @ 15:11:57
Author: seblu
Revision: 83695
archrelease: copy trunk to community-any
Added:
exabgp/repos/community-any/PKGBUILD
(from rev 83694, exabgp/trunk/PKGBUILD)
exabgp/repos/community-any/exabgp.service
(from rev 83694, exabgp/trunk/exabgp.service)
Deleted:
exabgp/repos/community-any/PKGBUILD
exabgp/repos/community-any/exabgp.conf
exabgp/repos/community-any/exabgp.rc
exabgp/repos/community-any/exabgp.service
----------------+
PKGBUILD | 87 +++++++++++++++++++++++++------------------------------
exabgp.conf | 5 ---
exabgp.rc | 43 ---------------------------
exabgp.service | 22 ++++++-------
4 files changed, 51 insertions(+), 106 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2013-02-04 14:10:48 UTC (rev 83694)
+++ PKGBUILD 2013-02-04 14:11:57 UTC (rev 83695)
@@ -1,47 +0,0 @@
-# $Id$
-# Maintainer: Sébastien Luttringer <seblu at aur.archlinux.org>
-
-pkgname=exabgp
-pkgver=3.0.11
-pkgrel=1
-pkgdesc='BPG route injector'
-arch=('any')
-license=('custom')
-url='http://code.google.com/p/exabgp/'
-depends=('python2')
-backup=('etc/exabgp.conf' 'etc/conf.d/exabgp')
-source=("http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tgz"
- 'exabgp.service'
- 'exabgp.rc'
- 'exabgp.conf')
-sha1sums=('86d62fc84728edc9ad53f0536544f4d180317309'
- '2f12eaf9be33e4a5b19ad96aeba97d2b4b67d58b'
- '4e796ad78e58640ab7a3eca6702b750125df9407'
- '138acaf511cdd95c3b1734d0c0913a1ca4c8207c')
-
-build() {
- # arch python2
- find $pkgname-$pkgver -type f -exec \
- sed -i '1s,^#!/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \; -print
-}
-
-package() {
- pushd $pkgname-$pkgver
- # upstream installer
- python2 setup.py install --root="$pkgdir" --install-data=/
- # install license
- install -D -m 644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- popd
- # install initscripts
- install -D -m 755 $pkgname.rc "$pkgdir/etc/rc.d/$pkgname"
- install -D -m 644 $pkgname.conf "$pkgdir/etc/conf.d/$pkgname"
- # install systemd service file
- install -D -m 644 $pkgname.service \
- "$pkgdir/usr/lib/systemd/system/$pkgname.service"
- # install empty config file
- install -D -m 644 /dev/null "$pkgdir/etc/$pkgname.conf"
- # move data in a more private directory
- mv "$pkgdir/etc/$pkgname" "$pkgdir/usr/share/$pkgname"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: exabgp/repos/community-any/PKGBUILD (from rev 83694, exabgp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2013-02-04 14:11:57 UTC (rev 83695)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Sébastien Luttringer <seblu at archlinux.org>
+
+pkgname=exabgp
+pkgver=3.0.11
+pkgrel=2
+pkgdesc='BPG route injector'
+arch=('any')
+license=('custom')
+url='http://code.google.com/p/exabgp/'
+depends=('python2')
+backup=('etc/exabgp.conf')
+source=("http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tgz"
+ 'exabgp.service')
+sha1sums=('86d62fc84728edc9ad53f0536544f4d180317309'
+ '2f12eaf9be33e4a5b19ad96aeba97d2b4b67d58b')
+
+build() {
+ # arch python2
+ find $pkgname-$pkgver -type f -exec \
+ sed -i '1s,^#!/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \; -print
+}
+
+package() {
+ pushd $pkgname-$pkgver
+ # upstream installer
+ python2 setup.py install --root="$pkgdir" --install-data=/
+ # install license
+ install -D -m 644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ popd
+ # systemd
+ install -D -m 644 $pkgname.service \
+ "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+ # install empty config file
+ install -D -m 644 /dev/null "$pkgdir/etc/$pkgname.conf"
+ # move data in a more private directory
+ mv "$pkgdir/etc/$pkgname" "$pkgdir/usr/share/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: exabgp.conf
===================================================================
--- exabgp.conf 2013-02-04 14:10:48 UTC (rev 83694)
+++ exabgp.conf 2013-02-04 14:11:57 UTC (rev 83695)
@@ -1,5 +0,0 @@
-# vim:set ts=2 sw=2 ft=sh noet:
-
-#DAEMON_USER=nobody
-#DAEMON_OPTS='/etc/exabgp.conf'
-#PIDFILE='/run/exabgp.pid'
Deleted: exabgp.rc
===================================================================
--- exabgp.rc 2013-02-04 14:10:48 UTC (rev 83694)
+++ exabgp.rc 2013-02-04 14:11:57 UTC (rev 83695)
@@ -1,43 +0,0 @@
-#!/bin/bash
-
-DAEMON=/usr/bin/${0##*/}
-DAEMON_USER=nobody
-DAEMON_OPTS=/etc/exabgp.conf
-PIDFILE=${PIDFILE:-/run/${0##*/}.pid}
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/${0##*/}
-
-# check pid file
-[[ -r "$PIDFILE" ]] &&
- read PID < "$PIDFILE" && [[ -n $PID ]] && kill -0 $PID || unset PID
-
-case "$1" in
- start)
- stat_busy "Starting ${0##*/} daemon"
- [[ ! $PID ]] && env exabgp.daemon.daemonize=true \
- exabgp.log.destination=syslog \
- exabgp.daemon.user="$DAEMON_USER" \
- exabgp.daemon.pid="$PIDFILE" "$DAEMON" $DAEMON_OPTS &&
- add_daemon ${0##*/} && stat_done && exit 0
- stat_fail
- ;;
- stop)
- stat_busy "Stopping ${0##*/} daemon"
- [[ $PID ]] && kill $PID &> /dev/null && rm_daemon ${0##*/} && stat_done && exit 0
- stat_fail
- ;;
- restart)
- $0 stop
- $0 start
- exit 0
- ;;
- *)
- echo "usage: ${0##*/} {start|stop|restart}" >&2
- ;;
-esac
-
-exit 1
-
-# vim:set ts=2 sw=2 ft=sh et:
Deleted: exabgp.service
===================================================================
--- exabgp.service 2013-02-04 14:10:48 UTC (rev 83694)
+++ exabgp.service 2013-02-04 14:11:57 UTC (rev 83695)
@@ -1,11 +0,0 @@
-[Unit]
-Description=ExaBGP
-After=network.target
-
-[Service]
-Environment=exabgp.daemon.daemonize=false
-Environment=exabgp.log.destination=stdout
-ExecStart=/usr/bin/exabgp /etc/exabgp.conf
-
-[Install]
-WantedBy=multi-user.target
Copied: exabgp/repos/community-any/exabgp.service (from rev 83694, exabgp/trunk/exabgp.service)
===================================================================
--- exabgp.service (rev 0)
+++ exabgp.service 2013-02-04 14:11:57 UTC (rev 83695)
@@ -0,0 +1,11 @@
+[Unit]
+Description=ExaBGP
+After=network.target
+
+[Service]
+Environment=exabgp.daemon.daemonize=false
+Environment=exabgp.log.destination=stdout
+ExecStart=/usr/bin/exabgp /etc/exabgp.conf
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list