From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel Lorenz <marcel.lorenz@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH 1/2] new package: perl-NetAddr-IP 4.078 Date: Thu, 17 Mar 2016 16:04:14 +0100 Message-ID: <1458227055-17757-1-git-send-email-marcel.lorenz@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8309213612115745993==" List-Id: <development.lists.ipfire.org> --===============8309213612115745993== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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(a)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/pac= kages/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/InetBas= e.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/I= netBase +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/In= etBase/_inet_ntop.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/In= etBase/_inet_pton.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/In= etBase/_packzeros.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/In= etBase/autosplit.ix +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/In= etBase/inet_any2n.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/In= etBase/inet_n2ad.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/In= etBase/inet_n2dx.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/In= etBase/inet_ntoa.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/In= etBase/ipv6_aton.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/In= etBase/ipv6_ntoa.al +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/U= til +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/U= til/Util.bs +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= il/Util.so +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= il/autosplit.ix +#usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/U= tilPP +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/_128x10.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/_128x2.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/_bcd2bin.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/_bcdcheck.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/_bin2bcdn.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/_deadlen.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/_sa128.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/add128.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/addconst.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/autosplit.ix +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/bcd2bin.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/bcdn2bin.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/bcdn2txt.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/bin2bcd.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/bin2bcdn.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/comp128.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/hasbits.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/ipanyto6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/ipv4to6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/ipv6to4.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/mask4to6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/maskanyto6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/notcontiguous.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/shiftleft.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/simple_pack.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/slowadd128.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/Ut= ilPP/sub128.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/_c= ompV6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/_c= ompact_v6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/_s= plitplan.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/_s= plitref.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/au= tosplit.ix +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/ca= non.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/co= alesce.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/co= mpactref.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/ho= stenum.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/mo= d_version.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/np= refix.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/pr= efix.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/re= 6.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/sh= ort.al +usr/lib/perl5/site_perl/5.12.3/MACHINE-linux-thread-multi/auto/NetAddr/IP/wi= ldcard.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(a)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 =3D 4.078 + +THISAPP =3D NetAddr-IP-$(VER) +DL_FILE =3D $(THISAPP).tar.gz +DL_FROM =3D $(URL_IPFIRE) +DIR_APP =3D $(DIR_SRC)/$(THISAPP) +TARGET =3D $(DIR_INFO)/$(THISAPP) +PROG =3D perl-NetAddr-IP +DEPS =3D "" +PAK_VER =3D 1 + +############################################################################= ### +# Top-level Rules +############################################################################= ### + +objects =3D $(DL_FILE) + +$(DL_FILE) =3D $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 =3D bca8406520b6535a3f9661d385705d97 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist:=20 + @$(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/i= nstall.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(a)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(a)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/up= date.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(a)ipfire.org>. = # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +./uninstall.sh +./install.sh --=20 1.9.1 --===============8309213612115745993==--