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 /news/inn | |
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.
Diffstat (limited to 'news/inn')
-rw-r--r-- | news/inn/Makefile | 15 | ||||
-rw-r--r-- | news/inn/files/patch-lib_innconf.c | 11 |
2 files changed, 13 insertions, 13 deletions
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"); |