diff options
author | shaun <shaun@FreeBSD.org> | 2006-08-30 08:39:07 +0800 |
---|---|---|
committer | shaun <shaun@FreeBSD.org> | 2006-08-30 08:39:07 +0800 |
commit | effab6e44691f7407cb6ef3ef8d540b631a264b9 (patch) | |
tree | e3632ba3034de69c24d0a0e30f351b219132b4ae | |
parent | 9ceb18ab020a64a23e13b0c6ab998e1df21ef78c (diff) | |
download | freebsd-ports-gnome-effab6e44691f7407cb6ef3ef8d540b631a264b9.tar.gz freebsd-ports-gnome-effab6e44691f7407cb6ef3ef8d540b631a264b9.tar.zst freebsd-ports-gnome-effab6e44691f7407cb6ef3ef8d540b631a264b9.zip |
For the inn ports:
- Fix build in the case where the host machine has either no DNS, or an
incomplete hostname.
- Use a generic placeholder in the default config file rather than the
build machine's name.
- Pet portlint(1) while here.
-rw-r--r-- | news/inn-current/Makefile | 8 | ||||
-rw-r--r-- | news/inn-current/files/patch-lib_innconf.c | 11 | ||||
-rw-r--r-- | news/inn-stable/Makefile | 6 | ||||
-rw-r--r-- | news/inn-stable/files/patch-lib_innconf.c | 11 | ||||
-rw-r--r-- | news/inn/Makefile | 15 | ||||
-rw-r--r-- | news/inn/files/patch-lib_innconf.c | 11 |
6 files changed, 44 insertions, 18 deletions
diff --git a/news/inn-current/Makefile b/news/inn-current/Makefile index ebcb645f30a0..51e4d77c1e82 100644 --- a/news/inn-current/Makefile +++ b/news/inn-current/Makefile @@ -58,9 +58,9 @@ WITH_BDB_VER= 41 . if (${WITH_BDB_VER} == 3) || (${WITH_BDB_VER} == 4) || (${WITH_BDB_VER} == 41) LIB_DEPENDS+= db${WITH_BDB_VER}:${PORTSDIR}/databases/db${WITH_BDB_VER} . elif ${WITH_BDB_VER} == 2 -BROKEN= "Does not compile with db2" +BROKEN= does not compile with db2 . else -BROKEN= "Unknown BerkeleyDB version" +BROKEN= unknown BerkeleyDB version . endif CONFIGURE_ENV+= DB_VER=db${WITH_BDB_VER} CONFIGURE_ARGS+= --with-berkeleydb=${LOCALBASE} @@ -129,7 +129,7 @@ MAN8= actsync.8 actsyncd.8 archive.8 auth_smb.8 batcher.8 buffchan.8 \ .include <bsd.port.pre.mk> .if ${ARCH} == "ia64" -BROKEN= "Does not compile on ia64" +BROKEN= does not compile on ${ARCH} .endif .if defined(WITH_STANDARD_ETC) @@ -165,6 +165,8 @@ post-install: s+!!PREFIX!!+${PREFIX}+g && ${CHMOD} +x ${PREFIX}/etc/rc.d/innd.sh @${CHOWN} root:news ${PREFIX}/news/bin/auth/passwd/ckpasswd @${CHMOD} 4755 ${PREFIX}/news/bin/auth/passwd/ckpasswd + @${FIND} ${WRKSRC} -name "inn.conf" \ + | ${XARGS} ${REINPLACE_CMD} -e 's/^pathhost:.*/pathhost: host.example.com/' @PKG_PREFIX=${PKG_PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} CHECK-CONF ${ETC_DIR} @(if [ ! -f ${PREFIX}/news/db/history ] ; then \ ${ECHO} 'Creating empty history database...' ; \ diff --git a/news/inn-current/files/patch-lib_innconf.c b/news/inn-current/files/patch-lib_innconf.c new file mode 100644 index 000000000000..05d8eadfb946 --- /dev/null +++ b/news/inn-current/files/patch-lib_innconf.c @@ -0,0 +1,11 @@ +--- lib/innconf.c.orig Mon Mar 20 04:14:57 2006 ++++ lib/innconf.c Sat Aug 26 00:22:04 2006 +@@ -395,7 +395,7 @@ + + if (GetFQDN(innconf->domain) == NULL) { + warn("hostname does not resolve or domain not set in inn.conf"); +- okay = false; ++/* okay = false; */ + } + if (innconf->mta == NULL) { + warn("must set mta in inn.conf"); diff --git a/news/inn-stable/Makefile b/news/inn-stable/Makefile index c1e3be72ca7d..b9cf473dfc85 100644 --- a/news/inn-stable/Makefile +++ b/news/inn-stable/Makefile @@ -56,9 +56,9 @@ LIB_DEPENDS+= db${WITH_BDB_VER}:${PORTSDIR}/databases/db${WITH_BDB_VER} .elif (${WITH_BDB_VER} == 42) LIB_DEPENDS+= db-4.2:${PORTSDIR}/databases/db42 . elif ${WITH_BDB_VER} == 2 -IGNORE= "Does not compile with db2" +IGNORE= does not compile with db2 . else -IGNORE= "Unknown BerkeleyDB version" +IGNORE= unknown BerkeleyDB version . endif CONFIGURE_ENV+= DB_VER=db${WITH_BDB_VER} CONFIGURE_ARGS+= --with-berkeleydb @@ -174,6 +174,8 @@ post-install: s+!!PREFIX!!+${PREFIX}+g && ${CHMOD} +x ${PREFIX}/etc/rc.d/innd.sh @${CHOWN} root:news ${PREFIX}/news/bin/auth/passwd/ckpasswd @${CHMOD} 4755 ${PREFIX}/news/bin/auth/passwd/ckpasswd + @${FIND} ${WRKSRC} -name "inn.conf" \ + | ${XARGS} ${REINPLACE_CMD} -e 's/^pathhost:.*/pathhost: host.example.com/' @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} CHECK-CONF ${ETC_DIR} @(if [ ! -f ${PREFIX}/news/db/history ] ; then \ ${ECHO} 'Creating empty history database...' ; \ diff --git a/news/inn-stable/files/patch-lib_innconf.c b/news/inn-stable/files/patch-lib_innconf.c new file mode 100644 index 000000000000..05d8eadfb946 --- /dev/null +++ b/news/inn-stable/files/patch-lib_innconf.c @@ -0,0 +1,11 @@ +--- lib/innconf.c.orig Mon Mar 20 04:14:57 2006 ++++ lib/innconf.c Sat Aug 26 00:22:04 2006 +@@ -395,7 +395,7 @@ + + if (GetFQDN(innconf->domain) == NULL) { + warn("hostname does not resolve or domain not set in inn.conf"); +- okay = false; ++/* okay = false; */ + } + if (innconf->mta == NULL) { + warn("must set mta in inn.conf"); diff --git a/news/inn/Makefile b/news/inn/Makefile index 9c8a9346cfee..f8f2d7d3027d 100644 --- a/news/inn/Makefile +++ b/news/inn/Makefile @@ -45,19 +45,6 @@ CONFIGURE_ARGS+= --mandir=${PREFIX}/man \ --enable-ipv6 \ --with-etc-dir=${ETC_DIR} -# Attempt to avoid failures later on, when -# makedbz is executed: we need a valid hostname. - -.if exists(/bin/hostname) -HOSTNAME!= /bin/hostname -. if ${HOSTNAME} != "" -HOSTNAME:= ${HOSTNAME:C/[^\.]//g} -. if ${HOSTNAME} == "" -IGNORE= requires a fully-qualified hostname in order to build -. endif -. endif -.endif - .if defined(WITH_BERKELEYDB) CONFIGURE_ARGS+= --with-berkeleydb . if !defined(WITH_BDB_VER) @@ -185,6 +172,8 @@ post-install: .endfor @${CHOWN} root:news ${PREFIX}/news/bin/auth/passwd/ckpasswd @${CHMOD} 4755 ${PREFIX}/news/bin/auth/passwd/ckpasswd + @${FIND} ${WRKSRC} -name "inn.conf" \ + | ${XARGS} ${REINPLACE_CMD} -e 's/^pathhost:.*/pathhost: host.example.com/' @${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} CHECK-CONF ${ETC_DIR} @(if [ ! -f ${PREFIX}/news/db/history ] ; then \ ${ECHO} 'Creating empty history database...' ; \ diff --git a/news/inn/files/patch-lib_innconf.c b/news/inn/files/patch-lib_innconf.c new file mode 100644 index 000000000000..05d8eadfb946 --- /dev/null +++ b/news/inn/files/patch-lib_innconf.c @@ -0,0 +1,11 @@ +--- lib/innconf.c.orig Mon Mar 20 04:14:57 2006 ++++ lib/innconf.c Sat Aug 26 00:22:04 2006 +@@ -395,7 +395,7 @@ + + if (GetFQDN(innconf->domain) == NULL) { + warn("hostname does not resolve or domain not set in inn.conf"); +- okay = false; ++/* okay = false; */ + } + if (innconf->mta == NULL) { + warn("must set mta in inn.conf"); |