--- tcp-wrappers-7.6-r4.ebuild.orig 2003-07-30 17:53:12.000000000 -0500 +++ tcp-wrappers-7.6-r4.ebuild 2003-07-30 21:33:02.000000000 -0500 @@ -27,16 +27,26 @@ epatch ${PATCHDIR}/${MY_P}-ipv6-1.6.diff epatch ${PATCHDIR}/${MY_P}-stdc.diff epatch ${PATCHDIR}/${MY_P}.diff - + + # The source is unpacked with all files permissions set to + # 0444. This prevents the Makefile from being written to. + chmod ug+w Makefile cp Makefile Makefile.orig sed -e "s:-O2:${CFLAGS} -fPIC:" \ -e "s:AUX_OBJ=.*:AUX_OBJ= \\\:" Makefile.orig > Makefile } +# If the -j option is given to make without an argument, the build +# of tcp-wrappers will fail with the error "No rule to make target +# cflags, needed by `tcpd.o`." The config-check target prevents +# this from happening. src_compile() { make ${MAKEOPTS} \ REAL_DAEMON_DIR=/usr/sbin \ + config-check || die + make ${MAKEOPTS} \ + REAL_DAEMON_DIR=/usr/sbin \ linux || die }