This is a dependency for the new spamassassin. Can't build sa 3.4.1 without this Perl module.
Signed-off-by: Marcel Lorenz marcel.lorenz@ipfire.org
--- config/rootfiles/packages/perl-NetAddr-IP | 76 ++++++++++++++++++++++++++++ lfs/perl-NetAddr-IP | 82 +++++++++++++++++++++++++++++++ src/paks/perl-NetAddr-IP/install.sh | 26 ++++++++++ src/paks/perl-NetAddr-IP/uninstall.sh | 26 ++++++++++ src/paks/perl-NetAddr-IP/update.sh | 26 ++++++++++ 5 files changed, 236 insertions(+) create mode 100644 config/rootfiles/packages/perl-NetAddr-IP create mode 100644 lfs/perl-NetAddr-IP create mode 100644 src/paks/perl-NetAddr-IP/install.sh create mode 100644 src/paks/perl-NetAddr-IP/uninstall.sh create mode 100644 src/paks/perl-NetAddr-IP/update.sh
diff --git a/config/rootfiles/packages/perl-NetAddr-IP b/config/rootfiles/packages/perl-NetAddr-IP new file mode 100644 index 0000000..805a76d --- /dev/null +++ b/config/rootfiles/packages/perl-NetAddr-IP @@ -0,0 +1,76 @@ +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/NetAddr +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/NetAddr/IP +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/NetAddr/IP.pm +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/NetAddr/IP/InetBase.pm +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/NetAddr/IP/Lite.pm +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/NetAddr/IP/Util.pm +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/NetAddr/IP/UtilPP.pm +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/NetAddr/IP/Util_IS.pm +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/.packlist +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/InetBase +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/InetBase/_inet_ntop.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/InetBase/_inet_pton.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/InetBase/_packzeros.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/InetBase/autosplit.ix +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/InetBase/inet_any2n.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/InetBase/inet_n2ad.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/InetBase/inet_n2dx.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/InetBase/inet_ntoa.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/InetBase/ipv6_aton.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/InetBase/ipv6_ntoa.al +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Util +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Util/Util.bs +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Util/Util.so +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Util/autosplit.ix +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/_128x10.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/_128x2.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/_bcd2bin.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/_bcdcheck.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/_bin2bcdn.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/_deadlen.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/_sa128.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/add128.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/addconst.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/autosplit.ix +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/bcd2bin.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/bcdn2bin.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/bcdn2txt.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/bin2bcd.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/bin2bcdn.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/comp128.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/hasbits.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/ipanyto6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/ipv4to6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/ipv6to4.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/mask4to6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/maskanyto6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/notcontiguous.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/shiftleft.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/simple_pack.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/slowadd128.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/UtilPP/sub128.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/_compV6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/_compact_v6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/_splitplan.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/_splitref.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/autosplit.ix +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/canon.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/coalesce.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/compactref.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/do_prefix.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/hostenum.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/mod_version.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/nprefix.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/prefix.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/re.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/re6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/short.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/wildcard.al +#usr/share/man/man3/NetAddr::IP.3 +#usr/share/man/man3/NetAddr::IP::InetBase.3 +#usr/share/man/man3/NetAddr::IP::Lite.3 +#usr/share/man/man3/NetAddr::IP::Util.3 +#usr/share/man/man3/NetAddr::IP::UtilPP.3 diff --git a/lfs/perl-NetAddr-IP b/lfs/perl-NetAddr-IP new file mode 100644 index 0000000..0929d04 --- /dev/null +++ b/lfs/perl-NetAddr-IP @@ -0,0 +1,82 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2016 IPFire Team info@ipfire.org # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see http://www.gnu.org/licenses/. # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 4.078 + +THISAPP = NetAddr-IP-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = perl-NetAddr-IP +DEPS = "" +PAK_VER = 1 + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = bca8406520b6535a3f9661d385705d97 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && perl Makefile.PL + cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD) + diff --git a/src/paks/perl-NetAddr-IP/install.sh b/src/paks/perl-NetAddr-IP/install.sh new file mode 100644 index 0000000..270e0a5 --- /dev/null +++ b/src/paks/perl-NetAddr-IP/install.sh @@ -0,0 +1,26 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2016 IPFire-Team info@ipfire.org. # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +extract_files +restore_backup ${NAME} diff --git a/src/paks/perl-NetAddr-IP/uninstall.sh b/src/paks/perl-NetAddr-IP/uninstall.sh new file mode 100644 index 0000000..66f4344 --- /dev/null +++ b/src/paks/perl-NetAddr-IP/uninstall.sh @@ -0,0 +1,26 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team info@ipfire.org. # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +make_backup ${NAME} +remove_files diff --git a/src/paks/perl-NetAddr-IP/update.sh b/src/paks/perl-NetAddr-IP/update.sh new file mode 100644 index 0000000..89c40d0 --- /dev/null +++ b/src/paks/perl-NetAddr-IP/update.sh @@ -0,0 +1,26 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team info@ipfire.org. # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +./uninstall.sh +./install.sh