summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Lane2015-06-09 17:36:38 +0100
committerJohn Lane2015-06-09 17:36:38 +0100
commit20c02d235b3fb1c5ef6c99d07a8c70d132c79a5b (patch)
treebeb290282424ab0f835387651f69504b2adaed61
downloadaur-20c02d235b3fb1c5ef6c99d07a8c70d132c79a5b.tar.gz
Initial import
-rw-r--r--.AURINFO17
-rw-r--r--.SRCINFO22
-rw-r--r--LICENSE36
-rw-r--r--PKGBUILD49
-rw-r--r--finger.socket9
-rw-r--r--finger@.service7
-rw-r--r--fix-manpage-typo.patch11
7 files changed, 151 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 000000000000..8528d6c56a17
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,17 @@
+pkgbase = netkit-bsd-finger
+ pkgdesc = BSD-finger ported to Linux
+ pkgver = 0.17
+ pkgrel = 9
+ url = http://ftp.linux.org.uk/pub/linux/Networking/netkit
+ arch = i686
+ arch = x86_64
+ license = BSD
+ depends = glibc
+ source = http://ftp.linux.org.uk/pub/linux/Networking/netkit/bsd-finger-0.17.tar.gz
+ source = LICENSE
+ source = fix-manpage-typo.patch
+ source = finger.socket
+ source = finger@.service
+
+pkgname = netkit-bsd-finger
+
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..9ea920406b11
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = netkit-bsd-finger
+ pkgdesc = BSD-finger ported to Linux
+ pkgver = 0.17
+ pkgrel = 9
+ url = http://ftp.linux.org.uk/pub/linux/Networking/netkit
+ arch = i686
+ arch = x86_64
+ license = BSD
+ depends = glibc
+ source = http://ftp.linux.org.uk/pub/linux/Networking/netkit/bsd-finger-0.17.tar.gz
+ source = LICENSE
+ source = fix-manpage-typo.patch
+ source = finger.socket
+ source = finger@.service
+ sha256sums = 84885d668d117ef50e01c7034a45d8343d747cec6212e40e8d08151bc18e13fa
+ sha256sums = 3774a4bb6207edc124838915911bd139a78312336876a9fe59700216dfeb54b4
+ sha256sums = 7e264f316fa465ec1b6aa2074d552ba8fe5534e44cabe9859301feb2fd45315b
+ sha256sums = 6cde9cd7ec8dda157d6dcb28988d1caf2280e7e089573b1ad1824e263b8a9fb7
+ sha256sums = 89276c8300c7a30c7103b44bd0e80162aa86069a80d209ff95da706546a55516
+
+pkgname = netkit-bsd-finger
+
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000000..78254519a087
--- /dev/null
+++ b/LICENSE
@@ -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.
+ */
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..a07d2218d537
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: John Lane <archlinux at jelmail dot com>
+# Contributor: dorphell <dorphell@archlinux.org>
+
+pkgname=netkit-bsd-finger
+pkgver=0.17
+pkgrel=9
+pkgdesc="BSD-finger ported to Linux"
+arch=('i686' 'x86_64')
+url='http://ftp.linux.org.uk/pub/linux/Networking/netkit'
+license=('BSD')
+depends=('glibc')
+
+source=("http://ftp.linux.org.uk/pub/linux/Networking/netkit/bsd-finger-${pkgver}.tar.gz"
+ 'LICENSE'
+ 'fix-manpage-typo.patch'
+ 'finger.socket'
+ 'finger@.service')
+
+sha256sums=('84885d668d117ef50e01c7034a45d8343d747cec6212e40e8d08151bc18e13fa'
+ '3774a4bb6207edc124838915911bd139a78312336876a9fe59700216dfeb54b4'
+ '7e264f316fa465ec1b6aa2074d552ba8fe5534e44cabe9859301feb2fd45315b'
+ '6cde9cd7ec8dda157d6dcb28988d1caf2280e7e089573b1ad1824e263b8a9fb7'
+ '89276c8300c7a30c7103b44bd0e80162aa86069a80d209ff95da706546a55516')
+
+
+prepare() {
+ cd bsd-finger-${pkgver}
+ # FS#28232
+ patch -p1 -i "${srcdir}"/fix-manpage-typo.patch
+ sed -i 's@include <sys/time.h>@include <time.h>@' finger/lprint.c
+ sed -i 's@include <sys/time.h>@include <time.h>@' finger/sprint.c
+}
+
+build() {
+ cd bsd-finger-${pkgver}
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd bsd-finger-${pkgver}
+ install -d "${pkgdir}"/usr/{bin,share/man/{man1,man8}}
+ make INSTALLROOT="${pkgdir}" SBINDIR=/usr/bin MANDIR=/usr/share/man install
+
+ install -D -m644 "${srcdir}/finger.socket" "${pkgdir}//usr/lib/systemd/system/finger.socket"
+ install -D -m644 "${srcdir}/finger@.service" "${pkgdir}//usr/lib/systemd/system/finger@.service"
+
+ install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/finger.socket b/finger.socket
new file mode 100644
index 000000000000..2bd4f904bb88
--- /dev/null
+++ b/finger.socket
@@ -0,0 +1,9 @@
+[Unit]
+Description=Finger Socket
+
+[Socket]
+ListenStream=79
+Accept=yes
+
+[Install]
+WantedBy=sockets.target
diff --git a/finger@.service b/finger@.service
new file mode 100644
index 000000000000..e71a15b7f5e4
--- /dev/null
+++ b/finger@.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Finger Per-Connection Daemon
+
+[Service]
+ExecStart=-/usr/bin/in.fingerd
+StandardInput=socket
+StandardError=syslog
diff --git a/fix-manpage-typo.patch b/fix-manpage-typo.patch
new file mode 100644
index 000000000000..99915ce924d5
--- /dev/null
+++ b/fix-manpage-typo.patch
@@ -0,0 +1,11 @@
+--- bsd-finger-0.17/finger/finger.1~ 2012-02-21 07:18:46.236600851 +0000
++++ bsd-finger-0.17/finger/finger.1 2012-02-21 07:19:26.979613738 +0000
+@@ -169,7 +169,7 @@
+ must be able to see the
+ .Pa .nofinger
+ file. This generally means that the home directory containing the file
+-must have the other-users-execute bit set (o+w). See
++must have the other-users-execute bit set (o+x). See
+ .Xr chmod 1 .
+ If you use this feature for privacy, please test it with ``finger
+ @localhost'' before relying on it, just in case.