portmap: cleanup and fix #27

Merged
merged 1 commit into from Oct 5, 2012
Jump to file
+6 −14
Split
View
@@ -1,17 +1,9 @@
(
-
- # yes the double brackets are needed and NO quotes are needed in the following test!!!
- if [[ $OPTS == *--without-tcpwrappers* ]]; then
- sedit "s:\$(WRAP_DIR)/libwrap.a::" Makefile &&
- sedit "s:^HOSTS_ACCESS=:#HOSTS_ACCESS=:" Makefile
- fi &&
- sedit "s/const char \*what/__const char \*what/" portmap.c &&
-
- make WRAP_DIR=/usr/lib &&
+
+ sedit "/#include <tcpd.h>/d" pmap_check.c &&
+
+ make NO_TCP_WRAPPER=1 &&
prepare_install &&
- cp portmap /sbin &&
- cp pmap_dump /sbin &&
- cp pmap_set /sbin &&
- cp $SCRIPT_DIRECTORY/init.d/portmap /etc/init.d
-
+ make install
+
) > $C_FIFO 2>&1