mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 18:57:13 +08:00
42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=netkit-bsd-finger
|
|
pkgver=0.17
|
|
pkgrel=6
|
|
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')
|
|
backup=('etc/xinetd.d/finger')
|
|
source=("http://www.chakra-linux.org/sources/${pkgname}/bsd-finger-${pkgver}.tar.gz"
|
|
'finger.xinetd' 'LICENSE'
|
|
'fix-manpage-typo.patch')
|
|
md5sums=('52bf281aac8814bf56cdc92f7661ee75'
|
|
'a8682004dc8dee356065162bde892b47'
|
|
'5fc568418a0379fc3a358ed1c2523b44'
|
|
'9c4ad79a8df81ade6d1938955f1debbd')
|
|
|
|
build() {
|
|
cd ${srcdir}/bsd-finger-${pkgver}
|
|
|
|
patch -p1 -i "${srcdir}"/fix-manpage-typo.patch
|
|
|
|
./configure --prefix=/usr
|
|
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
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/bsd-finger-${pkgver}
|
|
install -d ${pkgdir}/usr/{bin,sbin} ${pkgdir}/usr/share/man/{man1,man8}
|
|
make INSTALLROOT=${pkgdir} MANDIR=/usr/share/man install
|
|
|
|
install -D -m644 ${srcdir}/finger.xinetd ${pkgdir}/etc/xinetd.d/finger
|
|
install -D -m644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|