Date: Monday, August 4, 2014 @ 17:18:40 Author: seblu Revision: 116862
archrelease: copy trunk to community-i686, community-x86_64 Added: lldpd/repos/community-i686/ lldpd/repos/community-i686/LICENSE (from rev 116861, lldpd/trunk/LICENSE) lldpd/repos/community-i686/PKGBUILD (from rev 116861, lldpd/trunk/PKGBUILD) lldpd/repos/community-i686/lldpd.install (from rev 116861, lldpd/trunk/lldpd.install) lldpd/repos/community-i686/lldpd.service (from rev 116861, lldpd/trunk/lldpd.service) lldpd/repos/community-x86_64/ lldpd/repos/community-x86_64/LICENSE (from rev 116861, lldpd/trunk/LICENSE) lldpd/repos/community-x86_64/PKGBUILD (from rev 116861, lldpd/trunk/PKGBUILD) lldpd/repos/community-x86_64/lldpd.install (from rev 116861, lldpd/trunk/lldpd.install) lldpd/repos/community-x86_64/lldpd.service (from rev 116861, lldpd/trunk/lldpd.service) --------------------------------+ community-i686/LICENSE | 11 ++++++ community-i686/PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++ community-i686/lldpd.install | 19 +++++++++++ community-i686/lldpd.service | 12 +++++++ community-x86_64/LICENSE | 11 ++++++ community-x86_64/PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++ community-x86_64/lldpd.install | 19 +++++++++++ community-x86_64/lldpd.service | 12 +++++++ 8 files changed, 208 insertions(+) Copied: lldpd/repos/community-i686/LICENSE (from rev 116861, lldpd/trunk/LICENSE) =================================================================== --- community-i686/LICENSE (rev 0) +++ community-i686/LICENSE 2014-08-04 15:18:40 UTC (rev 116862) @@ -0,0 +1,11 @@ +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Copied: lldpd/repos/community-i686/PKGBUILD (from rev 116861, lldpd/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2014-08-04 15:18:40 UTC (rev 116862) @@ -0,0 +1,62 @@ +# $Id$ +# Maintainer: Sébastien "Seblu" Luttringer +# Contributor: Brian Bidulock <bidul...@openss7.org> + +pkgname=lldpd +pkgver=0.7.10 +pkgrel=1 +pkgdesc='802.1ab implementation (LLDP) to help you locate neighbors' +arch=('i686' 'x86_64') +url='http://vincentbernat.github.io/lldpd/' +license=('custom:ISC' 'GPL') +depends=('glibc' 'libevent' 'libbsd' 'zlib' 'openssl' 'pciutils' 'perl' + 'libxml2' 'net-snmp' 'jansson') +backup=('etc/lldpd.conf') +install=$pkgname.install +source=("http://media.luffy.cx/files/lldpd/lldpd-$pkgver.tar.gz" + 'LICENSE' + 'lldpd.service') +md5sums=('508f2e76703abf8420d9223aae3db548' + '8ae98663bac55afe5d989919d296f28a' + 'a650af7390db0632480184f9f2e7ee4a') + +build() { + cd $pkgname-$pkgver + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --sbindir=/usr/bin \ + --with-snmp \ + --with-xml \ + --with-json \ + --with-readline \ + --with-privsep-user=lldpd \ + --with-privsep-group=lldpd \ + --with-privsep-chroot=/run/lldpd/chroot \ + --with-lldpd-ctl-socket=/run/lldpd/socket \ + --with-lldpd-pid-file=/run/lldpd/pid + make +} + +check() { + cd $pkgname-$pkgver + make check +} + +package() { + # config stuff + install -D -m 644 /dev/null "$pkgdir/etc/lldpd.conf" + install -d -m 755 "$pkgdir/etc/lldpd.d" + # systemd stuff + install -D -m 644 lldpd.service "$pkgdir/usr/lib/systemd/system/lldpd.service" + install -D -m 644 /dev/null "$pkgdir/usr/lib/tmpfiles.d/lldpd.conf" + printf 'd /run/lldpd 0750 lldpd lldpd\nd /run/lldpd 0750 lldpd lldpd\n' > \ + "$pkgdir/usr/lib/tmpfiles.d/lldpd.conf" + # license + install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: Copied: lldpd/repos/community-i686/lldpd.install (from rev 116861, lldpd/trunk/lldpd.install) =================================================================== --- community-i686/lldpd.install (rev 0) +++ community-i686/lldpd.install 2014-08-04 15:18:40 UTC (rev 116862) @@ -0,0 +1,19 @@ +#/bin/bash + +# arg 1: the new package version +post_install() { + # https://wiki.archlinux.org/index.php/DeveloperWiki:UID_/_GID_Database + getent group lldpd >/dev/null || groupadd -g 127 lldpd + getent passwd lldpd >/dev/null || useradd -d /run/lldpd -u 127 -g 127 lldpd + systemd-tmpfiles --create lldpd.conf + true +} + +# arg 1: the old package version +post_remove() { + userdel -f lldpd &>/dev/null + groupdel lldpd &>/dev/null + true +} + +# vim:set ts=2 sw=2 ft=sh et: Copied: lldpd/repos/community-i686/lldpd.service (from rev 116861, lldpd/trunk/lldpd.service) =================================================================== --- community-i686/lldpd.service (rev 0) +++ community-i686/lldpd.service 2014-08-04 15:18:40 UTC (rev 116862) @@ -0,0 +1,12 @@ +[Unit] +Description=LLDP daemon +Documentation=man:lldpd(8) +After=network.target + +[Service] +Type=notify +NotifyAccess=main +ExecStart=/usr/bin/lldpd + +[Install] +WantedBy=multi-user.target Copied: lldpd/repos/community-x86_64/LICENSE (from rev 116861, lldpd/trunk/LICENSE) =================================================================== --- community-x86_64/LICENSE (rev 0) +++ community-x86_64/LICENSE 2014-08-04 15:18:40 UTC (rev 116862) @@ -0,0 +1,11 @@ +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Copied: lldpd/repos/community-x86_64/PKGBUILD (from rev 116861, lldpd/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2014-08-04 15:18:40 UTC (rev 116862) @@ -0,0 +1,62 @@ +# $Id$ +# Maintainer: Sébastien "Seblu" Luttringer +# Contributor: Brian Bidulock <bidul...@openss7.org> + +pkgname=lldpd +pkgver=0.7.10 +pkgrel=1 +pkgdesc='802.1ab implementation (LLDP) to help you locate neighbors' +arch=('i686' 'x86_64') +url='http://vincentbernat.github.io/lldpd/' +license=('custom:ISC' 'GPL') +depends=('glibc' 'libevent' 'libbsd' 'zlib' 'openssl' 'pciutils' 'perl' + 'libxml2' 'net-snmp' 'jansson') +backup=('etc/lldpd.conf') +install=$pkgname.install +source=("http://media.luffy.cx/files/lldpd/lldpd-$pkgver.tar.gz" + 'LICENSE' + 'lldpd.service') +md5sums=('508f2e76703abf8420d9223aae3db548' + '8ae98663bac55afe5d989919d296f28a' + 'a650af7390db0632480184f9f2e7ee4a') + +build() { + cd $pkgname-$pkgver + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --sbindir=/usr/bin \ + --with-snmp \ + --with-xml \ + --with-json \ + --with-readline \ + --with-privsep-user=lldpd \ + --with-privsep-group=lldpd \ + --with-privsep-chroot=/run/lldpd/chroot \ + --with-lldpd-ctl-socket=/run/lldpd/socket \ + --with-lldpd-pid-file=/run/lldpd/pid + make +} + +check() { + cd $pkgname-$pkgver + make check +} + +package() { + # config stuff + install -D -m 644 /dev/null "$pkgdir/etc/lldpd.conf" + install -d -m 755 "$pkgdir/etc/lldpd.d" + # systemd stuff + install -D -m 644 lldpd.service "$pkgdir/usr/lib/systemd/system/lldpd.service" + install -D -m 644 /dev/null "$pkgdir/usr/lib/tmpfiles.d/lldpd.conf" + printf 'd /run/lldpd 0750 lldpd lldpd\nd /run/lldpd 0750 lldpd lldpd\n' > \ + "$pkgdir/usr/lib/tmpfiles.d/lldpd.conf" + # license + install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: Copied: lldpd/repos/community-x86_64/lldpd.install (from rev 116861, lldpd/trunk/lldpd.install) =================================================================== --- community-x86_64/lldpd.install (rev 0) +++ community-x86_64/lldpd.install 2014-08-04 15:18:40 UTC (rev 116862) @@ -0,0 +1,19 @@ +#/bin/bash + +# arg 1: the new package version +post_install() { + # https://wiki.archlinux.org/index.php/DeveloperWiki:UID_/_GID_Database + getent group lldpd >/dev/null || groupadd -g 127 lldpd + getent passwd lldpd >/dev/null || useradd -d /run/lldpd -u 127 -g 127 lldpd + systemd-tmpfiles --create lldpd.conf + true +} + +# arg 1: the old package version +post_remove() { + userdel -f lldpd &>/dev/null + groupdel lldpd &>/dev/null + true +} + +# vim:set ts=2 sw=2 ft=sh et: Copied: lldpd/repos/community-x86_64/lldpd.service (from rev 116861, lldpd/trunk/lldpd.service) =================================================================== --- community-x86_64/lldpd.service (rev 0) +++ community-x86_64/lldpd.service 2014-08-04 15:18:40 UTC (rev 116862) @@ -0,0 +1,12 @@ +[Unit] +Description=LLDP daemon +Documentation=man:lldpd(8) +After=network.target + +[Service] +Type=notify +NotifyAccess=main +ExecStart=/usr/bin/lldpd + +[Install] +WantedBy=multi-user.target