summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-01-12 11:27:29 +0100
committerErich Eckner <git@eckner.net>2017-01-12 11:27:29 +0100
commitbb0c5105c8ef2b980d43f42e0cf74d4291819bab (patch)
tree60a33d11b9bd3cc423a8fa6b9443a002a11cbd61
parent3612a72405793042929cb2483be01a21c3826a01 (diff)
downloadarchlinuxewe.git.save-bb0c5105c8ef2b980d43f42e0cf74d4291819bab.tar.xz
netkit-bsd-finger neu
-rw-r--r--netkit-bsd-finger/LICENSE36
-rw-r--r--netkit-bsd-finger/PKGBUILD50
-rw-r--r--netkit-bsd-finger/finger.socket9
-rw-r--r--netkit-bsd-finger/finger@.service7
-rw-r--r--netkit-bsd-finger/fix-manpage-typo.patch11
5 files changed, 113 insertions, 0 deletions
diff --git a/netkit-bsd-finger/LICENSE b/netkit-bsd-finger/LICENSE
new file mode 100644
index 00000000..78254519
--- /dev/null
+++ b/netkit-bsd-finger/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/netkit-bsd-finger/PKGBUILD b/netkit-bsd-finger/PKGBUILD
new file mode 100644
index 00000000..dfb81114
--- /dev/null
+++ b/netkit-bsd-finger/PKGBUILD
@@ -0,0 +1,50 @@
+# Contirbutor: John Lane <archlinux at jelmail dot com>
+# Contributor: dorphell <dorphell@archlinux.org>
+# Maintainer: Erich Eckner <arch at eckner dot net>
+
+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/netkit-bsd-finger/finger.socket b/netkit-bsd-finger/finger.socket
new file mode 100644
index 00000000..2bd4f904
--- /dev/null
+++ b/netkit-bsd-finger/finger.socket
@@ -0,0 +1,9 @@
+[Unit]
+Description=Finger Socket
+
+[Socket]
+ListenStream=79
+Accept=yes
+
+[Install]
+WantedBy=sockets.target
diff --git a/netkit-bsd-finger/finger@.service b/netkit-bsd-finger/finger@.service
new file mode 100644
index 00000000..e71a15b7
--- /dev/null
+++ b/netkit-bsd-finger/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/netkit-bsd-finger/fix-manpage-typo.patch b/netkit-bsd-finger/fix-manpage-typo.patch
new file mode 100644
index 00000000..99915ce9
--- /dev/null
+++ b/netkit-bsd-finger/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.