DL_FROM = ftp://ftp.porcupine.org/pub/security
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
+PROG = portmap
+PAK_VER = ipfire-beta1
###############################################################################
# Top-level Rules
md5 : $(subst %,%_MD5,$(objects))
dist:
- make-packages.sh portmap $(THISAPP)-ipfire-beta-1
+ @$(PAK)
###############################################################################
# Downloading, checking, md5sum
cd $(DIR_APP) && install -D -m 644 kb1ec_const.h /usr/include/linux/kb1ec_const.h
cd $(DIR_APP) && install -D -m 644 biquad.h /usr/include/linux/biquad.h
cd $(DIR_APP) && install -D -m 644 arith.h /usr/include/linux/arith.h
+ cd $(DIR_APP) && install -D -m 644 mg2ec.h /usr/include/linux/mg2ec.h
+ cd $(DIR_APP) && install -D -m 644 mg2ec_const.h /usr/include/linux/mg2ec_const.h
ln -nf -v /usr/include/linux/zaptel.h /usr/include/zaptel.h
ln -nf -v /usr/include/linux/zconfig.h /usr/include/zconfig.h
ln -nf -v /usr/include/linux/ecdis.h /usr/include/ecdis.h
ln -nf -v /usr/include/linux/kb1ec_const.h /usr/include/kb1ec_const.h
ln -nf -v /usr/include/linux/biquad.h /usr/include/biquad.h
ln -nf -v /usr/include/linux/arith.h /usr/include/arith.h
+ ln -nf -v /usr/include/linux/mg2ec.h /usr/include/mg2ec.h
+ ln -nf -v /usr/include/linux/mg2ec_const.h /usr/include/mg2ec_const.h
find /lib/modules/$(KVER)/misc/ -name '*.o' -a -type f | xargs gzip -f9
find /lib/modules/$(KVER)-smp/misc/ -name '*.o' -a -type f | xargs gzip -f9
@rm -rf $(DIR_APP)
ipfiredist nfs
ipfiredist nmap
ipfiredist ntop
+ ipfiredist portmap
ipfiredist postfix
ipfiredist procmail
ipfiredist samba
### This is our procedure that will compile the IPFire by herself...
echo "### UPDATE LOGS"
update_logs
- echo "### SAVING TIME"
- export IPFIRE_START_TIME=`date`
- echo "### GETTING TOOLCHAIN"
- $0 gettoolchain
+ if [ "$IPFIRE_REBUILD" -eq "0" ]; then
+ echo "### SAVING TIME"
+ export IPFIRE_START_TIME=`date`
- echo "### RUNNING SVN-UPDATE"
- $0 svn update
- if [ $? -ne 0 ]; then
- $0 mail SVNUPDATE
- exit 1
- fi
+ echo "### GETTING TOOLCHAIN"
+ $0 gettoolchain
+
+ echo "### RUNNING SVN-UPDATE"
+ $0 svn update
+ if [ $? -ne 0 ]; then
+ $0 mail SVNUPDATE
+ exit 1
+ fi
- echo "### EXPORT SOURCES"
- $0 svn dist
- if [ $? -ne 0 ]; then
- $0 mail SVNDIST
- exit 1
- fi
+ echo "### EXPORT SOURCES"
+ $0 svn dist
+ if [ $? -ne 0 ]; then
+ $0 mail SVNDIST
+ exit 1
+ fi
- echo "### RUNNING PREFETCH"
- $0 prefetch | grep -q "md5 difference"
- if [ $? -eq 0 ]; then
- $0 mail PREFETCH
- exit 1
+ echo "### RUNNING PREFETCH"
+ $0 prefetch | grep -q "md5 difference"
+ if [ $? -eq 0 ]; then
+ $0 mail PREFETCH
+ exit 1
+ fi
fi
echo "### RUNNING BUILD"
exit 0
;;
batch)
- if [ `screen -ls | grep batch` ]; then
+ if [ `screen -ls | grep -q ipfire` ]; then
echo "Build is already running, sorry!"
exit 1
else
+ if [ "$2" = "--rebuild" ]; then
+ export IPFIRE_REBUILD=1
+ echo "REBUILD!"
+ else
+ export IPFIRE_REBUILD=0
+ fi
echo -n "IPFire-Batch-Build is starting..."
screen -dmS ipfire $0 unattended
if [ "$?" -eq "0" ]; then
echo ".ERROR!"
exit 1
fi
- #if [ "$2" -eq "-v" ]; then
- # screen -x ipfire
- #else
- # echo "You may attach you with '-v'."
- #fi
exit 0
fi
;;
+sbin/portmap
+usr/sbin/pmap_dump
+usr/sbin/pmap_set
+#usr/share/man/man8/pmap_dump.8
+#usr/share/man/man8/pmap_set.8
+#usr/share/man/man8/portmap.8