wok-next view rsh-redone/receipt @ rev 21174

shaarli: fix tarball
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 14 16:02:11 2019 +0200 (2019-04-14)
parents 5e71a9c3df0c
children 1184c739f22f
line source
1 # SliTaz package receipt v2.
3 PACKAGE="rsh-redone"
4 VERSION="85"
5 CATEGORY="network"
6 SHORT_DESC="Reimplementation of rsh and rlogin"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://packages.debian.org/source/sid/rsh-redone"
11 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
12 WGET_URL="http://ftp.de.debian.org/debian/pool/main/${PACKAGE:0:1}/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="pam-dev"
15 SPLIT="rshd-redone"
17 compile_rules() {
18 make &&
19 make DESTDIR=$install install
20 }
22 genpkg_rules() {
23 case $PACKAGE in
24 rsh-redone)
25 mkdir -p $fs/usr
26 cp -a $install/usr/bin $fs/usr
27 PROVIDE="rsh rlogin"
28 ;;
29 rshd-redone)
30 mkdir -p $fs/usr $fs/etc/skel
31 cp -a $install/usr/sbin $fs/usr
32 cp -a $install/usr/etc $fs
33 touch $fs/etc/skel/.rhosts
34 chmod 600 $fs/etc/skel/.rhosts
35 CAT="network|rshd and rlogind"
36 DEPENDS="pam"
37 PROVIDE="rshd:pam rshd-pam"
38 ;;
39 esac
40 }
42 # Pre and post install commands for Tazpkg.
43 post_install_rshd-redone()
44 {
45 if ! grep -qs rlogind $1/etc/inetd.conf; then
46 cat >> $1/etc/inetd.conf <<EOT
47 login stream tcp nowait root /usr/sbin/in.rlogind rlogind
48 shell stream tcp nowait root /usr/sbin/in.rshd rshd
49 EOT
50 [ -n "$1" ] || killall -HUP inetd
51 fi
52 }
54 # Pre and post install commands for Tazpkg.
55 pre_remove_rshd-redone()
56 {
57 sed -i '/rlogind/d;/rshd/d' $1/etc/inetd.conf
58 [ -n "$1" ] || killall -HUP inetd
59 }