diff options
author | wrstuden <wrstuden> | 2001-09-26 23:53:55 +0000 |
---|---|---|
committer | wrstuden <wrstuden> | 2001-09-26 23:53:55 +0000 |
commit | 7daf45ddae4ed69a06f281d5643b210367f36179 (patch) | |
tree | 5085dceabb6df9417cae9f748cb4cb2d3d628ff2 /net | |
parent | df5bc423b7026af927f14a330eb3c42f7d4995a1 (diff) | |
download | pkgsrc-7daf45ddae4ed69a06f281d5643b210367f36179.tar.gz |
Make this package more likely to work. After we do the autoconf step,
crank down the maximum number of commands to feed one sed. Otherwise
config.status won't work with any of sun's seds.
Doing something with gsed won't work because while you can tell a
package to use a given sed (via ${SED} if needed), you can't tell
configure to use a given sed.
Diffstat (limited to 'net')
-rw-r--r-- | net/ucd-snmp-current/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/net/ucd-snmp-current/Makefile b/net/ucd-snmp-current/Makefile index e8a86f00152..224c56e9394 100644 --- a/net/ucd-snmp-current/Makefile +++ b/net/ucd-snmp-current/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2001/09/24 15:06:20 tron Exp $ +# $NetBSD: Makefile,v 1.15 2001/09/26 23:53:55 wrstuden Exp $ DISTNAME= ucd-snmp-4.2.1 CATEGORIES= net @@ -51,7 +51,14 @@ post-extract: @${LN} ${WRKSRC}/s/netbsd.h ${WRKSRC}/s/netbsdelf.h pre-configure: - cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf + (cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf) +.if ${OPSYS} == SunOS +# Adapt for the fact that the default I've seen of ac_max_sed_cmds=90 +#will not work w/ built-in sed on Solaris. + (cd ${WRKSRC} && ${SED} \ + 's/ac_max_sed_cmds=[0-9][0-9]*/ac_max_sed_cmds=10/' \ + configure > tmp && cp tmp configure && rm tmp) +.endif post-build: ${SED} 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/snmpd.sh > ${WRKDIR}/snmpd |