[arch-commits] Commit in arpwatch/repos (10 files)

Sébastien Luttringer seblu at nymeria.archlinux.org
Sat Apr 6 14:38:22 UTC 2013


    Date: Saturday, April 6, 2013 @ 16:38:21
  Author: seblu
Revision: 87785

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

Added:
  arpwatch/repos/community-i686/LICENSE
    (from rev 87784, arpwatch/trunk/LICENSE)
  arpwatch/repos/community-i686/PKGBUILD
    (from rev 87784, arpwatch/trunk/PKGBUILD)
  arpwatch/repos/community-i686/arpwatch.service
    (from rev 87784, arpwatch/trunk/arpwatch.service)
  arpwatch/repos/community-x86_64/LICENSE
    (from rev 87784, arpwatch/trunk/LICENSE)
  arpwatch/repos/community-x86_64/PKGBUILD
    (from rev 87784, arpwatch/trunk/PKGBUILD)
  arpwatch/repos/community-x86_64/arpwatch.service
    (from rev 87784, arpwatch/trunk/arpwatch.service)
Deleted:
  arpwatch/repos/community-i686/ChangeLog
  arpwatch/repos/community-i686/PKGBUILD
  arpwatch/repos/community-x86_64/ChangeLog
  arpwatch/repos/community-x86_64/PKGBUILD

-----------------------------------+
 /PKGBUILD                         |   92 ++++++++++++++++++++++++++++++++++++
 community-i686/ChangeLog          |    3 -
 community-i686/LICENSE            |   18 +++++++
 community-i686/PKGBUILD           |   29 -----------
 community-i686/arpwatch.service   |   11 ++++
 community-x86_64/ChangeLog        |    3 -
 community-x86_64/LICENSE          |   18 +++++++
 community-x86_64/PKGBUILD         |   29 -----------
 community-x86_64/arpwatch.service |   11 ++++
 9 files changed, 150 insertions(+), 64 deletions(-)

Deleted: community-i686/ChangeLog
===================================================================
--- community-i686/ChangeLog	2013-04-06 14:38:12 UTC (rev 87784)
+++ community-i686/ChangeLog	2013-04-06 14:38:21 UTC (rev 87785)
@@ -1,3 +0,0 @@
-2007-07-02 tardo <tardo at nagi-fanboi.net>
-* Built for x86_64
-

Copied: arpwatch/repos/community-i686/LICENSE (from rev 87784, arpwatch/trunk/LICENSE)
===================================================================
--- community-i686/LICENSE	                        (rev 0)
+++ community-i686/LICENSE	2013-04-06 14:38:21 UTC (rev 87785)
@@ -0,0 +1,18 @@
+Copyright (c) 1992, 1993, 1994, 1995, 1996, 1998, 2000
+     The Regents of the University of California.  All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that: (1) source code distributions
+retain the above copyright notice and this paragraph in its entirety, (2)
+distributions including binary code include the above copyright notice and
+this paragraph in its entirety in the documentation or other materials
+provided with the distribution, and (3) all advertising materials mentioning
+features or use of this software display the following acknowledgement:
+``This product includes software developed by the University of California,
+Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
+the University nor the names of its contributors may be used to endorse
+or promote products derived from this software without specific prior
+written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2013-04-06 14:38:12 UTC (rev 87784)
+++ community-i686/PKGBUILD	2013-04-06 14:38:21 UTC (rev 87785)
@@ -1,29 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=arpwatch
-pkgver=2.1a15
-pkgrel=8
-pkgdesc="arpwatch and arpsnmp network monitoring tools"
-arch=(i686 x86_64)
-url="ftp://ftp.ee.lbl.gov/"
-license=("GPL")
-depends=(libpcap)
-source=(ftp://ftp.ee.lbl.gov/$pkgname-$pkgver.tar.gz)
-md5sums=('cebfeb99c4a7c2a6cee2564770415fe7')
-
-build() {
-  cd $srcdir/$pkgname-$pkgver
-
-  sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in
-
-  ./configure --prefix=/usr
-  make SENDMAIL=/usr/sbin/sendmail
-  install -d -m 0755 $pkgdir/usr/sbin
-  make DESTDIR=$pkgdir install
-  install -D -m 0644 arpwatch.8 $pkgdir/usr/share/man/man8/arpwatch.8
-  install -D -m 0644 arpsnmp.8 $pkgdir/usr/share/man/man8/arpsnmp.8
-  install -d -m 0755 $pkgdir/var/lib/arpwatch
-  touch $pkgdir/var/lib/arpwatch/arp.dat
-}

Copied: arpwatch/repos/community-i686/PKGBUILD (from rev 87784, arpwatch/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2013-04-06 14:38:21 UTC (rev 87785)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sébastien Luttringer
+
+pkgname=arpwatch
+pkgver=2.1a15
+pkgrel=9
+pkgdesc='Ethernet/FDDI station activity monitor'
+arch=('i686' 'x86_64')
+url='ftp://ftp.ee.lbl.gov/'
+license=('BSD')
+depends=('libpcap' 'smtp-forwarder')
+source=("ftp://ftp.ee.lbl.gov/$pkgname-$pkgver.tar.gz"
+        'LICENSE'
+        "$pkgname.service")
+md5sums=('cebfeb99c4a7c2a6cee2564770415fe7'
+         '9359518c500562281e76cdb0b2fa9062'
+         '2324a202222303daa1a41d8abd7a7e4a')
+
+prepare() {
+  cd $pkgname-$pkgver
+  # move arp database in /var/lib/arpwatch
+  sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in
+  # binary ownership to root
+  sed -i 's/-\(o\|g\) bin/-\1 root/g' Makefile.in
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --mandir=/usr/share/man
+  make SENDMAIL=/usr/sbin/sendmail
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -d -m 0755 "$pkgdir"/usr/{sbin,share/man}
+  make DESTDIR="$pkgdir" install install-man
+  cd "$srcdir"
+  # license
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  # systemd
+  install -Dm644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname at .service"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: arpwatch/repos/community-i686/arpwatch.service (from rev 87784, arpwatch/trunk/arpwatch.service)
===================================================================
--- community-i686/arpwatch.service	                        (rev 0)
+++ community-i686/arpwatch.service	2013-04-06 14:38:21 UTC (rev 87785)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Watch ARP on interface %I
+After=network.target
+
+[Service]
+Type=forking
+ExecStartPre=/usr/bin/touch /var/lib/arpwatch/%I.dat
+ExecStart=/usr/sbin/arpwatch -f /var/lib/arpwatch/%I.dat -i %I
+
+[Install]
+WantedBy=multi-user.target

Deleted: community-x86_64/ChangeLog
===================================================================
--- community-x86_64/ChangeLog	2013-04-06 14:38:12 UTC (rev 87784)
+++ community-x86_64/ChangeLog	2013-04-06 14:38:21 UTC (rev 87785)
@@ -1,3 +0,0 @@
-2007-07-02 tardo <tardo at nagi-fanboi.net>
-* Built for x86_64
-

Copied: arpwatch/repos/community-x86_64/LICENSE (from rev 87784, arpwatch/trunk/LICENSE)
===================================================================
--- community-x86_64/LICENSE	                        (rev 0)
+++ community-x86_64/LICENSE	2013-04-06 14:38:21 UTC (rev 87785)
@@ -0,0 +1,18 @@
+Copyright (c) 1992, 1993, 1994, 1995, 1996, 1998, 2000
+     The Regents of the University of California.  All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that: (1) source code distributions
+retain the above copyright notice and this paragraph in its entirety, (2)
+distributions including binary code include the above copyright notice and
+this paragraph in its entirety in the documentation or other materials
+provided with the distribution, and (3) all advertising materials mentioning
+features or use of this software display the following acknowledgement:
+``This product includes software developed by the University of California,
+Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
+the University nor the names of its contributors may be used to endorse
+or promote products derived from this software without specific prior
+written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2013-04-06 14:38:12 UTC (rev 87784)
+++ community-x86_64/PKGBUILD	2013-04-06 14:38:21 UTC (rev 87785)
@@ -1,29 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=arpwatch
-pkgver=2.1a15
-pkgrel=8
-pkgdesc="arpwatch and arpsnmp network monitoring tools"
-arch=(i686 x86_64)
-url="ftp://ftp.ee.lbl.gov/"
-license=("GPL")
-depends=(libpcap)
-source=(ftp://ftp.ee.lbl.gov/$pkgname-$pkgver.tar.gz)
-md5sums=('cebfeb99c4a7c2a6cee2564770415fe7')
-
-build() {
-  cd $srcdir/$pkgname-$pkgver
-
-  sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in
-
-  ./configure --prefix=/usr
-  make SENDMAIL=/usr/sbin/sendmail
-  install -d -m 0755 $pkgdir/usr/sbin
-  make DESTDIR=$pkgdir install
-  install -D -m 0644 arpwatch.8 $pkgdir/usr/share/man/man8/arpwatch.8
-  install -D -m 0644 arpsnmp.8 $pkgdir/usr/share/man/man8/arpsnmp.8
-  install -d -m 0755 $pkgdir/var/lib/arpwatch
-  touch $pkgdir/var/lib/arpwatch/arp.dat
-}

Copied: arpwatch/repos/community-x86_64/PKGBUILD (from rev 87784, arpwatch/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2013-04-06 14:38:21 UTC (rev 87785)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sébastien Luttringer
+
+pkgname=arpwatch
+pkgver=2.1a15
+pkgrel=9
+pkgdesc='Ethernet/FDDI station activity monitor'
+arch=('i686' 'x86_64')
+url='ftp://ftp.ee.lbl.gov/'
+license=('BSD')
+depends=('libpcap' 'smtp-forwarder')
+source=("ftp://ftp.ee.lbl.gov/$pkgname-$pkgver.tar.gz"
+        'LICENSE'
+        "$pkgname.service")
+md5sums=('cebfeb99c4a7c2a6cee2564770415fe7'
+         '9359518c500562281e76cdb0b2fa9062'
+         '2324a202222303daa1a41d8abd7a7e4a')
+
+prepare() {
+  cd $pkgname-$pkgver
+  # move arp database in /var/lib/arpwatch
+  sed -i 's|ARPDIR = $(prefix)/arpwatch|ARPDIR = /var/lib/arpwatch|' Makefile.in
+  # binary ownership to root
+  sed -i 's/-\(o\|g\) bin/-\1 root/g' Makefile.in
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --mandir=/usr/share/man
+  make SENDMAIL=/usr/sbin/sendmail
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -d -m 0755 "$pkgdir"/usr/{sbin,share/man}
+  make DESTDIR="$pkgdir" install install-man
+  cd "$srcdir"
+  # license
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  # systemd
+  install -Dm644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname at .service"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: arpwatch/repos/community-x86_64/arpwatch.service (from rev 87784, arpwatch/trunk/arpwatch.service)
===================================================================
--- community-x86_64/arpwatch.service	                        (rev 0)
+++ community-x86_64/arpwatch.service	2013-04-06 14:38:21 UTC (rev 87785)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Watch ARP on interface %I
+After=network.target
+
+[Service]
+Type=forking
+ExecStartPre=/usr/bin/touch /var/lib/arpwatch/%I.dat
+ExecStart=/usr/sbin/arpwatch -f /var/lib/arpwatch/%I.dat -i %I
+
+[Install]
+WantedBy=multi-user.target




More information about the arch-commits mailing list