aboutsummaryrefslogtreecommitdiffstats
path: root/shells/v7sh
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-12-27 17:20:54 +0800
committerbapt <bapt@FreeBSD.org>2013-12-27 17:20:54 +0800
commit993f80ec1554be27080adce4557ee96b0195abfa (patch)
tree264ac7130c90ecb623a416a1b5f8a16b6f7a7a9b /shells/v7sh
parent8fe27edc1d5196e1ebaf9bcfd3962425a581909e (diff)
downloadfreebsd-ports-gnome-993f80ec1554be27080adce4557ee96b0195abfa.tar.gz
freebsd-ports-gnome-993f80ec1554be27080adce4557ee96b0195abfa.tar.zst
freebsd-ports-gnome-993f80ec1554be27080adce4557ee96b0195abfa.zip
Support stage
Diffstat (limited to 'shells/v7sh')
-rw-r--r--shells/v7sh/Makefile28
-rw-r--r--shells/v7sh/pkg-plist1
2 files changed, 6 insertions, 23 deletions
diff --git a/shells/v7sh/Makefile b/shells/v7sh/Makefile
index fd7e9219c069..0061662cdd5e 100644
--- a/shells/v7sh/Makefile
+++ b/shells/v7sh/Makefile
@@ -17,34 +17,23 @@ DISTFILES= args.c:s blok.c:s brkincr.h:s builtin.c:s cmd.c:s \
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
-COMMENT= An implementation of the UNIX 7th Edition shell
+COMMENT= Implementation of the UNIX 7th Edition shell
+USES= uidfix
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= ${WRKDIR}
NO_WRKSUBDIR= yes
-MAN1= ${PORTNAME}.1
-MANCOMPRESSED= yes
OPTIONS_DEFINE= SYSIII RENO ULTRIX
OPTIONS_DEFAULT= SYSIII RENO ULTRIX
SYSIII_DESC= System III enhancements
RENO_DESC= 4.3BSD-Reno enhancements
ULTRIX_DESC= Ultrix 3.1 enhancements
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSYSIII}
-CFLAGS+= -DSYSIII
-.endif
-.if ${PORT_OPTIONS:MRENO}
-CFLAGS+= -DRENO
-.endif
-.if ${PORT_OPTIONS:MULTRIX}
-CFLAGS+= -DULTRIX
-.endif
+SYSIII_CFLAGS= -DSYSIII
+RENO_CFLAGS= -DRENO
+ULTRIX_CFLAGS= -DULTRIX
post-extract:
@${MV} ${WRKSRC}/sh.1 ${WRKSRC}/${PORTNAME}.1
@@ -52,11 +41,4 @@ post-extract:
@${CP} ${FILESDIR}/test.c ${WRKSRC} # sysIII
@${CP} ${FILESDIR}/pathnames.h ${WRKSRC} # 43reno
-post-install:
- @${ECHO_MSG} "updating /etc/shells"
- @${CP} /etc/shells /etc/shells.bak
- @(${GREP} -v ${PREFIX}/bin/${PORTNAME} /etc/shells.bak; \
- ${ECHO_CMD} ${PREFIX}/bin/${PORTNAME}) > /etc/shells
- @${RM} /etc/shells.bak
-
.include <bsd.port.mk>
diff --git a/shells/v7sh/pkg-plist b/shells/v7sh/pkg-plist
index b0a0b315611c..645af0f4fde8 100644
--- a/shells/v7sh/pkg-plist
+++ b/shells/v7sh/pkg-plist
@@ -1,3 +1,4 @@
bin/v7sh
+man/man1/v7sh.1.gz
@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells