Skip to content

Commit

Permalink
Merge pull request #27 from v4hn/portmap
Browse files Browse the repository at this point in the history
portmap: cleanup and fix
  • Loading branch information
sofar committed Oct 5, 2012
2 parents a937713 + 951344f commit c8a50e6
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions net/portmap/BUILD
Original file line number Original file line Diff line number Diff line change
@@ -1,17 +1,9 @@
( (


# yes the double brackets are needed and NO quotes are needed in the following test!!! sedit "/#include <tcpd.h>/d" pmap_check.c &&
if [[ $OPTS == *--without-tcpwrappers* ]]; then
sedit "s:\$(WRAP_DIR)/libwrap.a::" Makefile && make NO_TCP_WRAPPER=1 &&
sedit "s:^HOSTS_ACCESS=:#HOSTS_ACCESS=:" Makefile
fi &&
sedit "s/const char \*what/__const char \*what/" portmap.c &&

make WRAP_DIR=/usr/lib &&
prepare_install && prepare_install &&
cp portmap /sbin && make install
cp pmap_dump /sbin &&
cp pmap_set /sbin &&
cp $SCRIPT_DIRECTORY/init.d/portmap /etc/init.d

) > $C_FIFO 2>&1 ) > $C_FIFO 2>&1

0 comments on commit c8a50e6

Please sign in to comment.