|
|
epatch ${PATCHDIR}/${MY_P}-ipv6-1.6.diff | epatch ${PATCHDIR}/${MY_P}-ipv6-1.6.diff |
epatch ${PATCHDIR}/${MY_P}-stdc.diff | epatch ${PATCHDIR}/${MY_P}-stdc.diff |
epatch ${PATCHDIR}/${MY_P}.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 | cp Makefile Makefile.orig |
sed -e "s:-O2:${CFLAGS} -fPIC:" \ | sed -e "s:-O2:${CFLAGS} -fPIC:" \ |
-e "s:AUX_OBJ=.*:AUX_OBJ= \\\:" Makefile.orig > Makefile | -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() { | src_compile() { |
make ${MAKEOPTS} \ | make ${MAKEOPTS} \ |
REAL_DAEMON_DIR=/usr/sbin \ | REAL_DAEMON_DIR=/usr/sbin \ |
|
config-check || die |
|
make ${MAKEOPTS} \ |
|
REAL_DAEMON_DIR=/usr/sbin \ |
linux || die | linux || die |
} | } |
| |