From 457793c0a421fe16791d7d3fcfd3c0c12cd08035 Mon Sep 17 00:00:00 2001 From: tholo Date: Sun, 8 Dec 1996 22:22:38 +0000 Subject: [PATCH] Install sample portal configuration file if none are installed --- sbin/mount_portal/Makefile | 7 ++++++- sbin/mount_portal/portal.conf | 12 ++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/sbin/mount_portal/Makefile b/sbin/mount_portal/Makefile index 6beda13e745..c8760182bf0 100644 --- a/sbin/mount_portal/Makefile +++ b/sbin/mount_portal/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 1996/06/23 14:31:30 deraadt Exp $ +# $OpenBSD: Makefile,v 1.3 1996/12/08 22:22:38 tholo Exp $ # $NetBSD: Makefile,v 1.10 1995/03/18 14:57:50 cgd Exp $ PROG= mount_portal @@ -14,3 +14,8 @@ DPADD= $(LIBCOMPAT) LDADD= -lcompat .include + +afterinstall: + if [ ! -f ${DESTDIR}/etc/portal.conf ]; then + ${INSTALL} ${COPY} -o root -g wheel -m 644 portal.conf ${DESTDIR}/etc + fi diff --git a/sbin/mount_portal/portal.conf b/sbin/mount_portal/portal.conf index 539f4524f9a..4ab04d14d73 100644 --- a/sbin/mount_portal/portal.conf +++ b/sbin/mount_portal/portal.conf @@ -1,9 +1,9 @@ -# $OpenBSD: portal.conf,v 1.2 1996/06/23 14:31:33 deraadt Exp $ +# $OpenBSD: portal.conf,v 1.3 1996/12/08 22:22:38 tholo Exp $ # $NetBSD: portal.conf,v 1.3 1995/03/18 14:57:59 cgd Exp $ # from: Id: portal.conf,v 1.1 1992/05/27 06:50:13 jsp Exp # @(#)portal.conf 8.1 (Berkeley) 6/5/93 -tcplisten/ tcplisten tcplisten/ -tcp/ tcp tcp/ -fs/ file fs/ -pipe/ pipe -foo/ exec ./bar bar baz +#tcplisten/ tcplisten tcplisten/ +#tcp/ tcp tcp/ +#fs/ file fs/ +#pipe/ pipe +#foo/ exec ./bar bar baz -- 2.20.1