mkdir -p work/usr P=`pwd`/work/ ./configure --prefix=/usr patch << EOF *** Makefile.old Fri Feb 1 23:38:54 2002 --- Makefile Fri Feb 1 23:44:11 2002 *************** *** 235,241 **** libntop_la_DEPENDENCIES = config.h libntop_la_LIBADD = \$(CORELIBS) ! libntop_la_LDFLAGS = -version-info -release -export-dynamic # Archive for http representation, or the 'viewer' libntopreport_la_SOURCES = admin.c emitter.c \\ --- 235,241 ---- libntop_la_DEPENDENCIES = config.h libntop_la_LIBADD = \$(CORELIBS) ! libntop_la_LDFLAGS = -release -export-dynamic # Archive for http representation, or the 'viewer' libntopreport_la_SOURCES = admin.c emitter.c \\ *************** *** 249,255 **** libntopreport_la_DEPENDENCIES = config.h libntopreport_la_LIBADD = \$(MORELIBS) ! libntopreport_la_LDFLAGS = -version-info -release -export-dynamic man_MANS = ntop.8 intop/intop.1 subdir = . --- 249,255 ---- libntopreport_la_DEPENDENCIES = config.h libntopreport_la_LIBADD = \$(MORELIBS) ! libntopreport_la_LDFLAGS = -release -export-dynamic man_MANS = ntop.8 intop/intop.1 subdir = . EOF make install prefix=$P/usr strip $P/usr/bin/ntop strip -g $P/usr/lib/* gzip -f $P/usr/man/man1/intop.1 gzip -f $P/usr/man/man8/ntop.8 mkdir -p $P/usr/var/ntop cd $P /sbin/makepkg ntop.tgz << EOF y y EOF