aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/psmisc/Makefile21
-rw-r--r--sysutils/psmisc/pkg-plist3
2 files changed, 7 insertions, 17 deletions
diff --git a/sysutils/psmisc/Makefile b/sysutils/psmisc/Makefile
index 8c5162d08f23..f7a66ff74090 100644
--- a/sysutils/psmisc/Makefile
+++ b/sysutils/psmisc/Makefile
@@ -16,28 +16,17 @@ BUILD_DEPENDS= gsed:${PORTSDIR}/textproc/gsed
CONFLICTS= pidof-[0-9]* pstree-2.[0-9]*
GNU_CONFIGURE= yes
-USE_GMAKE= yes
+USES= gmake
OPTIONS_DEFINE= NLS
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-MAN1= killall.1 pstree.1
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-CONFIGURE_ARGS= --enable-nls
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+OPTIONS_SUB= yes
+NLS_CONFIGURE_ENABLE= nls
+NLS_USES= gettext
post-patch:
@${REINPLACE_CMD} -e '/^#define COMM_LEN / s|16|254|' ${WRKSRC}/src/comm.h
post-install:
- @${LN} -fs ${PREFIX}/bin/killall ${PREFIX}/bin/pidof
+ @${LN} -fs killall ${STAGEDIR}${PREFIX}/bin/pidof
.include <bsd.port.mk>
diff --git a/sysutils/psmisc/pkg-plist b/sysutils/psmisc/pkg-plist
index 59c65ebab71c..fc6ee6d51d7a 100644
--- a/sysutils/psmisc/pkg-plist
+++ b/sysutils/psmisc/pkg-plist
@@ -1,8 +1,9 @@
-@comment $FreeBSD$
bin/killall
bin/pidof
bin/pstree
bin/pstree.x11
+man/man1/killall.1.gz
+man/man1/pstree.1.gz
%%NLS%%share/locale/bg/LC_MESSAGES/psmisc.mo
%%NLS%%share/locale/ca/LC_MESSAGES/psmisc.mo
%%NLS%%share/locale/cs/LC_MESSAGES/psmisc.mo