1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/security/osiris/Makefile
Rong-En Fan 741aa71483 Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
2008-08-21 06:18:49 +00:00

98 lines
2.6 KiB
Makefile

# New ports collection Makefile for: osiris
# Date created: 10, February 2003
# Whom: Nicolas Jombart <ecu@ipv42.net>
#
# $FreeBSD$
#
PORTNAME= osiris
PORTVERSION= 4.2.3
CATEGORIES= security
MASTER_SITES= http://osiris.shmoo.com/data/ \
http://redundancy.redundancy.org/mirror/
MAINTAINER= lx@FreeBSD.org
COMMENT= The Shmoo client/server host integrity checker
OPTIONS= OSIRISMD "Enable to build the management daemon" off \
OSIRISD "Enable to build the osirisd scan agent" on \
PRINTDB "Build database print tool" off \
CLI "Enable to build the management CLI" off
GNU_CONFIGURE= yes
USE_RC_SUBR= yes
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/lib/libreadline.so.5)
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
.endif
.if defined(WITH_OSIRISMD)
PLIST_SUB+= OSIRISMD=""
.else
PLIST_SUB+= OSIRISMD="@comment "
.endif
.if defined(WITHOUT_OSIRISD)
PLIST_SUB+= OSIRISD="@comment "
.else
PLIST_SUB+= OSIRISD=""
.endif
.if defined(WITH_CLI)
PLIST_SUB+= CLI=""
.else
PLIST_SUB+= CLI="@comment "
.endif
.if defined(WITH_PRINTDB)
PLIST_SUB+= PRINTDB=""
.else
PLIST_SUB+= PRINTDB="@comment "
.endif
post-build:
.if defined(WITH_PRINTDB)
cd ${WRKSRC}/src/tools && ${MAKE}
.endif
do-install:
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@${MKDIR} ${PREFIX}/osiris
.if defined(WITH_CLI)
${INSTALL_PROGRAM} ${WRKSRC}/src/cli/osiris ${PREFIX}/sbin
.endif
.if defined(WITH_PRINTDB)
${INSTALL_PROGRAM} ${WRKSRC}/src/tools/printdb ${PREFIX}/bin
.endif
.if !defined(WITHOUT_OSIRISD)
${SED} -e 's|@INSTALLDIR@|${PREFIX}/sbin|g' \
-e 's|@OSIRISDIR@|${PREFIX}/osiris|g' \
${WRKSRC}/src/install/freebsd/osirisd.in > \
${WRKSRC}/src/install/freebsd/osirisd.sh
${INSTALL_PROGRAM} ${WRKSRC}/src/osirisd/osirisd ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirisd.sh \
${PREFIX}/etc/rc.d
.endif
.if defined(WITH_OSIRISMD)
${SED} -e 's|@INSTALLDIR@|${PREFIX}/sbin|g' \
-e 's|@OSIRISDIR@|${PREFIX}/osiris|g' \
${WRKSRC}/src/install/freebsd/osirismd.in > \
${WRKSRC}/src/install/freebsd/osirismd.sh
@${MKDIR} ${PREFIX}/osiris/configs
.for os in aix bsdos darwin freebsd irix linux netbsd openbsd sunos \
unix-generic windows2000 windowsnt windowsserver2003 windowsxp \
wrt54g
${INSTALL_DATA} ${WRKSRC}/src/configs/default.${os} \
${PREFIX}/osiris/configs
.endfor
${INSTALL_PROGRAM} -m 4755 -o osiris -g osiris \
${WRKSRC}/src/osirismd/osirismd ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirismd.sh \
${PREFIX}/etc/rc.d
.endif
${CHOWN} -R osiris:osiris ${PREFIX}/osiris
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>