[arch-commits] Commit in netkit-bsd-finger/trunk (LICENSE PKGBUILD)

Eric Bélanger eric at archlinux.org
Wed Apr 15 22:40:14 EDT 2009


    Date: Wednesday, April 15, 2009 @ 22:40:14
  Author: eric
Revision: 35712

upgpkg: netkit-bsd-finger 0.17-4
    Added license, FHS man pages, Added backup array

Added:
  netkit-bsd-finger/trunk/LICENSE
Modified:
  netkit-bsd-finger/trunk/PKGBUILD

----------+
 LICENSE  |   36 ++++++++++++++++++++++++++++++++++++
 PKGBUILD |   27 ++++++++++++++++-----------
 2 files changed, 52 insertions(+), 11 deletions(-)

Added: LICENSE
===================================================================
--- LICENSE	                        (rev 0)
+++ LICENSE	2009-04-16 02:40:14 UTC (rev 35712)
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 1989 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Tony Nardo of the Johns Hopkins University/Applied Physics Lab.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *      This product includes software developed by the University of
+ *      California, Berkeley and its contributors.
+ * 4. 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 BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-04-16 02:38:09 UTC (rev 35711)
+++ PKGBUILD	2009-04-16 02:40:14 UTC (rev 35712)
@@ -2,20 +2,25 @@
 # Maintainer: dorphell <dorphell at archlinux.org>
 pkgname=netkit-bsd-finger
 pkgver=0.17
-pkgrel=3
+pkgrel=4
 pkgdesc="bsd-finger ported to Linux"
+arch=('i686' 'x86_64')
+url="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit"
+license=('BSD')
 depends=('glibc' 'xinetd')
-source=(ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/bsd-finger-$pkgver.tar.gz finger.xinetd)
-md5sums=('52bf281aac8814bf56cdc92f7661ee75' 'a8682004dc8dee356065162bde892b47')
-url="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit"
+backup=('etc/xinetd.d/finger')
+source=(ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/bsd-finger-$pkgver.tar.gz finger.xinetd LICENSE)
+md5sums=('52bf281aac8814bf56cdc92f7661ee75' 'a8682004dc8dee356065162bde892b47'\
+         '5fc568418a0379fc3a358ed1c2523b44')
 
 build() {
-   cd $startdir/src/bsd-finger-$pkgver
-   mkdir -p $startdir/pkg/usr/{bin,sbin} $startdir/pkg/usr/man/{man1,man8} $startdir/pkg/etc/xinetd.d
-   ./configure --prefix=$startdir/pkg/usr
-   sed -i 's at include <sys/time.h>@include <time.h>@' $startdir/src/bsd-finger-$pkgver/finger/lprint.c 
-   sed -i 's at include <sys/time.h>@include <time.h>@' $startdir/src/bsd-finger-$pkgver/finger/sprint.c 
+   cd $srcdir/bsd-finger-$pkgver
+   install -d $pkgdir/usr/{bin,sbin} $pkgdir/usr/share/man/{man1,man8}
+   ./configure --prefix=/usr || return 1
+   sed -i 's at include <sys/time.h>@include <time.h>@' finger/lprint.c || return 1
+   sed -i 's at include <sys/time.h>@include <time.h>@' finger/sprint.c || return 1
    make || return 1
-   make DESTDIR=$startdir/pkg install
-   install -m644 $startdir/src/finger.xinetd $startdir/pkg/etc/xinetd.d/finger
+   make INSTALLROOT=$pkgdir MANDIR=/usr/share/man install || return 1
+   install -D -m644 $srcdir/finger.xinetd $pkgdir/etc/xinetd.d/finger || return 1
+   install -D -m644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
 }



More information about the arch-commits mailing list