summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-12-08 08:52:35 +0000
committerwiz <wiz@pkgsrc.org>2000-12-08 08:52:35 +0000
commit404acac01b1fc6ebf1676d90e69c49fc2b3cf940 (patch)
tree65bada5e9ce8157ea74a8498727c8dfe9571f9d7 /security
parent1b1003a0fe636f5d842450e06f85788861dd2590 (diff)
downloadpkgsrc-404acac01b1fc6ebf1676d90e69c49fc2b3cf940.tar.gz
Move code from REQ file to INSTALL.
Diffstat (limited to 'security')
-rw-r--r--security/openssh/Makefile6
-rw-r--r--security/openssh/pkg/INSTALL16
-rw-r--r--security/openssh/pkg/REQ29
3 files changed, 19 insertions, 32 deletions
diff --git a/security/openssh/Makefile b/security/openssh/Makefile
index af2b4cdb9b4..cd41c5900eb 100644
--- a/security/openssh/Makefile
+++ b/security/openssh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2000/11/09 09:18:23 itojun Exp $
+# $NetBSD: Makefile,v 1.32 2000/12/08 08:52:35 wiz Exp $
#
DISTNAME= openssh-2.3.0p1
@@ -90,9 +90,11 @@ post-build:
< $${FILE} > ${WRKDIR}/`basename $${FILE}`; \
done
+pre-install:
+ PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
+
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/sshd.sh ${PREFIX}/etc/rc.d/sshd
- PKG_PREFIX=${PREFIX} ${SH} ${REQ_FILE} ${PKGNAME} INSTALL
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"
diff --git a/security/openssh/pkg/INSTALL b/security/openssh/pkg/INSTALL
index 8517160ab65..3586cf3d142 100644
--- a/security/openssh/pkg/INSTALL
+++ b/security/openssh/pkg/INSTALL
@@ -1,12 +1,26 @@
#!/bin/sh
#
-# $NetBSD: INSTALL,v 1.1 2000/07/22 08:22:59 jlam Exp $
+# $NetBSD: INSTALL,v 1.2 2000/12/08 08:52:36 wiz Exp $
PKGNAME=$1
STAGE=$2
case ${STAGE} in
PRE-INSTALL)
+ if ! dd if=/dev/urandom of=/dev/null bs=1 count=1 2>/dev/null >/dev/null
+ then
+ cat << EOF
+===========================================================================
+You need a working /dev/urandom for ${PKGNAME} to work.
+
+Please make sure you have a kernel compiled from a config file
+containing the line:
+
+ pseudo-device rnd
+===========================================================================
+EOF
+ exit 1
+ fi
;;
POST-INSTALL)
SSH_CONF_DIR=@SSH_CONF_DIR@
diff --git a/security/openssh/pkg/REQ b/security/openssh/pkg/REQ
deleted file mode 100644
index 91205d56cd6..00000000000
--- a/security/openssh/pkg/REQ
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: REQ,v 1.2 2000/07/25 07:29:44 jlam Exp $
-#
-
-PKG=$1
-STAGE=$2
-
-if [ "$STAGE" != "INSTALL" ];
-then
- exit 0
-fi
-
-if ! dd if=/dev/urandom of=/dev/null bs=1 count=1 2>/dev/null >/dev/null
-then
- cat << EOF
-===========================================================================
-You need a working /dev/urandom for ${PKG} to work.
-
-Please make sure you have a kernel compiled from a config file
-containing the line:
-
- pseudo-device rnd
-===========================================================================
-EOF
- exit 1
-fi
-
-exit 0