aboutsummaryrefslogtreecommitdiffstats
path: root/misc/upclient/Makefile
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2003-01-03 14:35:32 +0800
committerpetef <petef@FreeBSD.org>2003-01-03 14:35:32 +0800
commit453db036e363e1679a5c679d949a188d051ce008 (patch)
tree6aca5b30be1cd0c6fc7f37deaf60d30a99c947f2 /misc/upclient/Makefile
parentb82acbaacba24a7d01372857f3ebfdcffea17da9 (diff)
downloadfreebsd-ports-gnome-453db036e363e1679a5c679d949a188d051ce008.tar.gz
freebsd-ports-gnome-453db036e363e1679a5c679d949a188d051ce008.tar.zst
freebsd-ports-gnome-453db036e363e1679a5c679d949a188d051ce008.zip
Update to 5.0.b6.
PR: 46339 Submitted by: maintainer
Diffstat (limited to 'misc/upclient/Makefile')
-rw-r--r--misc/upclient/Makefile29
1 files changed, 24 insertions, 5 deletions
diff --git a/misc/upclient/Makefile b/misc/upclient/Makefile
index aaf27b8dad07..f2d706c019ec 100644
--- a/misc/upclient/Makefile
+++ b/misc/upclient/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= upclient
-PORTVERSION= 5.0.b5
+PORTVERSION= 5.0.b6
CATEGORIES= misc
MASTER_SITES= http://uptimes.wonko.com/files/
DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
@@ -16,7 +16,10 @@ MAINTAINER= cyrille.lefevre@laposte.net
# Global variables
#
+LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
+
USE_REINPLACE= yes
+USE_GMAKE= yes
ALL_TARGET= bsd
BUILD_WRKSRC= ${WRKSRC}/src
@@ -29,10 +32,19 @@ MAN8= upclient.8
#
DOC_FILES= AUTHORS COPYING FAQ HISTORY INSTALL README TODO
+DOC_FILES+= doc/UptimesProtocol5
DOC_FILES+= HISTORY-BETA
.include <bsd.port.pre.mk>
+# Post-extract
+#
+
+post-extract: rename-doc
+
+rename-doc:
+ @${MV} ${WRKSRC}/doc/"Uptimes Protocol 5" ${WRKSRC}/doc/UptimesProtocol5
+
# Post-patch
#
@@ -40,7 +52,9 @@ post-patch: patch-prefix patch-pkgmessage
patch-prefix:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
- ${WRKSRC}/scripts/upchk ${WRKSRC}/src/Makefile
+ -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+ ${WRKSRC}/scripts/upchk ${WRKSRC}/scripts/clientchk \
+ ${WRKSRC}/src/Makefile
patch-pkgmessage:
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
@@ -48,11 +62,12 @@ patch-pkgmessage:
# Install
#
-do-install: install-program install-man install-sample install-script
+do-install: install-program install-man install-sample install-script \
+ install-locale
install-program:
@${INSTALL_PROGRAM} -g kmem -m 2555 ${WRKSRC}/src/products/upclient \
- ${PREFIX}/sbin/upclient
+ ${PREFIX}/sbin
install-man:
@${INSTALL_MAN} ${WRKSRC}/src/products/upclient.8 \
@@ -63,7 +78,11 @@ install-sample:
${PREFIX}/etc/upclient.conf.sample
install-script:
- @${INSTALL_SCRIPT} ${WRKSRC}/scripts/upchk ${PREFIX}/sbin/upchk
+ @${INSTALL_SCRIPT} ${WRKSRC}/scripts/upchk ${WRKSRC}/scripts/clientchk \
+ ${PREFIX}/sbin
+
+install-locale:
+ @cd ${WRKSRC}/src; ${GMAKE} install-locales
# Post-install
#