mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
- add stage support
- move post-install hint into pkg-message - move port from apache@ to ports@ (port it is not apache@ related)
This commit is contained in:
parent
40ea588e83
commit
50f566b7f8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355912
@ -6,48 +6,35 @@ PORTVERSION= 0.7.9
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= sysutils ipv6
|
||||
MASTER_SITES= http://healthd.thehousleys.net/ \
|
||||
http://healthd1.thehousleys.net/
|
||||
LOCAL/ohauer
|
||||
|
||||
MAINTAINER= apache@FreeBSD.org
|
||||
COMMENT= A daemon to monitor vital motherboard parameters
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Daemon to monitor vital motherboard parameters
|
||||
|
||||
LICENSE= BSD2CLAUSE
|
||||
|
||||
OPTIONS_DEFINE= IPV6 FULL_CONFIG
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
FULL_CONFIG_DESC= Remotely reading the full config
|
||||
FULL_CONFIG_DESC= Remotely reading the full config
|
||||
IPV6_CONFIGURE_ENABLE= ipv6
|
||||
FULL_CONFIG_CONFIGURE_ENABLE= full-config
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --exec-prefix=${PREFIX}
|
||||
|
||||
MAN8= healthd.8 healthdc.8
|
||||
CONFIGURE_ARGS+=--exec-prefix=${PREFIX}
|
||||
INSTALL_TARGET= install-all
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
.if ${PORT_OPTIONS:MIPV6}
|
||||
CONFIGURE_ARGS+= --enable-ipv6
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-ipv6
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MFULL_CONFIG}
|
||||
CONFIGURE_ARGS+= --enable-full-config
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-full-config
|
||||
.endif
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's| @exec_prefix@| $$(DESTDIR)@exec_prefix@|' \
|
||||
${WRKSRC}/Makefile.in
|
||||
|
||||
post-install:
|
||||
@if [ ! -f ${PREFIX}/etc/healthd.conf ]; then \
|
||||
${ECHO} "Installing ${PREFIX}/etc/healthd.conf configuration file."; \
|
||||
${ECHO} "It is recommended you edit this file to match your system"; \
|
||||
${ECHO} "before running the program."; \
|
||||
${CP} ${PREFIX}/etc/healthd.conf.sample ${PREFIX}/etc/healthd.conf; \
|
||||
fi
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}/
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
|
||||
${INSTALL_DATA} ${WRKSRC}/PROTOCOL ${DOCSDIR}/
|
||||
.endif
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/PROTOCOL ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
2
sysutils/healthd/files/pkg-message.in
Normal file
2
sysutils/healthd/files/pkg-message.in
Normal file
@ -0,0 +1,2 @@
|
||||
It is recommended to edit %%PREFIX%%/etc/healthd.conf
|
||||
so it match the monitored system before running the program.
|
@ -1,8 +1,8 @@
|
||||
bin/healthdc
|
||||
@sample etc/healthd.conf.sample
|
||||
man/man8/healthd.8.gz
|
||||
man/man8/healthdc.8.gz
|
||||
sbin/healthd
|
||||
@unexec if cmp -s %D/etc/healthd.conf %D/etc/healthd.conf.sample; then rm -f %D/etc/healthd.conf; fi
|
||||
etc/healthd.conf.sample
|
||||
@exec if [ ! -f %D/etc/healthd.conf ]; then cp -p %D/%F %B/healthd.conf; fi
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/PROTOCOL
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user