Per-PDF-API2: new perl module used by squid-accounting
authorAlexander Marx <alexander.marx@ipfire.org>
Wed, 6 Aug 2014 06:59:43 +0000 (08:59 +0200)
committerAlexander Marx <alexander.marx@ipfire.org>
Wed, 6 Aug 2014 11:38:21 +0000 (13:38 +0200)
config/rootfiles/packages/perl-PDF-API2 [new file with mode: 0644]
lfs/perl-PDF-API2 [new file with mode: 0644]
lfs/squid-accounting

diff --git a/config/rootfiles/packages/perl-PDF-API2 b/config/rootfiles/packages/perl-PDF-API2
new file mode 100644 (file)
index 0000000..c594d82
--- /dev/null
@@ -0,0 +1,176 @@
+usr/lib/perl5/site_perl/5.12.3/PDF
+usr/lib/perl5/site_perl/5.12.3/PDF/API2
+usr/lib/perl5/site_perl/5.12.3/PDF/API2.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Annotation.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Array.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Bool.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Dict.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/File.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Filter
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Filter.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Filter/ASCII85Decode.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Filter/ASCIIHexDecode.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Filter/FlateDecode.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Filter/LZWDecode.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Filter/RunLengthDecode.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Literal.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Name.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Null.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Number.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Objind.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Page.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Pages.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/String.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Basic/PDF/Utils.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Content
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Content.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Content/Text.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Lite.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Matrix.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/NamedDestination.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Outline.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Outlines.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Page.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/BaseFont.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/CJKFont
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/CJKFont.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/CJKFont/adobemingstdlightacro.data
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/CJKFont/adobemyungjostdmediumacro.data
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/CJKFont/adobesongstdlightacro.data
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/CJKFont/kozgopromediumacro.data
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/CJKFont/kozminproregularacro.data
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/CMap
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/CMap/japanese.cmap
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/CMap/korean.cmap
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/CMap/simplified.cmap
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/CMap/traditional.cmap
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/TrueType
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/TrueType.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/CIDFont/TrueType/FontFile.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/ColorSpace
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/ColorSpace.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/ColorSpace/DeviceN.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/ColorSpace/Indexed
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/ColorSpace/Indexed.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/ColorSpace/Indexed/ACTFile.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/ColorSpace/Indexed/Hue.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/ColorSpace/Indexed/WebColor.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/ColorSpace/Separation.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Colors.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/ExtGState.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/BdFont.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/bankgothic.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/courier.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/courierbold.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/courierboldoblique.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/courieroblique.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/georgia.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/georgiabold.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/georgiabolditalic.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/georgiaitalic.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/helvetica.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/helveticabold.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/helveticaboldoblique.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/helveticaoblique.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/symbol.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/timesbold.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/timesbolditalic.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/timesitalic.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/timesroman.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/trebuchet.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/trebuchetbold.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/trebuchetbolditalic.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/trebuchetitalic.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/verdana.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/verdanabold.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/verdanabolditalic.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/verdanaitalic.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/webdings.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/wingdings.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/CoreFont/zapfdingbats.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/Postscript.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Font/SynFont.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Glyphs.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/PaperSizes.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Pattern.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/Shading.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/UniFont.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Form
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Form.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Form/BarCode
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Form/BarCode.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Form/BarCode/codabar.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Form/BarCode/code128.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Form/BarCode/code3of9.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Form/BarCode/ean13.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Form/BarCode/int2of5.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Form/Hybrid.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Image
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Image.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Image/GD.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Image/GIF.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Image/JPEG.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Image/PNG.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Image/PNM.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/XObject/Image/TIFF.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Resource/uniglyph.txt
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/UniWrap.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Util.pm
+usr/lib/perl5/site_perl/5.12.3/PDF/API2/Win32.pm
+#usr/lib/perl5/site_perl/5.12.3/i586-linux-thread-multi/auto/PDF
+#usr/lib/perl5/site_perl/5.12.3/i586-linux-thread-multi/auto/PDF/API2
+#usr/lib/perl5/site_perl/5.12.3/i586-linux-thread-multi/auto/PDF/API2/.packlist
+#usr/share/man/man3/PDF::API2.3
+#usr/share/man/man3/PDF::API2::Annotation.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::Array.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::Bool.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::Dict.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::File.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::Filter.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::Filter::RunLengthDecode.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::Name.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::Null.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::Number.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::Objind.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::Page.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::Pages.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::String.3
+#usr/share/man/man3/PDF::API2::Basic::PDF::Utils.3
+#usr/share/man/man3/PDF::API2::Content.3
+#usr/share/man/man3/PDF::API2::Lite.3
+#usr/share/man/man3/PDF::API2::NamedDestination.3
+#usr/share/man/man3/PDF::API2::Outline.3
+#usr/share/man/man3/PDF::API2::Page.3
+#usr/share/man/man3/PDF::API2::Resource.3
+#usr/share/man/man3/PDF::API2::Resource::BaseFont.3
+#usr/share/man/man3/PDF::API2::Resource::CIDFont.3
+#usr/share/man/man3/PDF::API2::Resource::CIDFont::CJKFont.3
+#usr/share/man/man3/PDF::API2::Resource::CIDFont::TrueType.3
+#usr/share/man/man3/PDF::API2::Resource::ColorSpace.3
+#usr/share/man/man3/PDF::API2::Resource::ColorSpace::Indexed::ACTFile.3
+#usr/share/man/man3/PDF::API2::Resource::ColorSpace::Separation.3
+#usr/share/man/man3/PDF::API2::Resource::ExtGState.3
+#usr/share/man/man3/PDF::API2::Resource::Font.3
+#usr/share/man/man3/PDF::API2::Resource::Font::BdFont.3
+#usr/share/man/man3/PDF::API2::Resource::Font::CoreFont.3
+#usr/share/man/man3/PDF::API2::Resource::Font::SynFont.3
+#usr/share/man/man3/PDF::API2::Resource::UniFont.3
+#usr/share/man/man3/PDF::API2::Resource::XObject.3
+#usr/share/man/man3/PDF::API2::Resource::XObject::Form.3
+#usr/share/man/man3/PDF::API2::Resource::XObject::Form::BarCode.3
+#usr/share/man/man3/PDF::API2::Resource::XObject::Form::BarCode::code128.3
+#usr/share/man/man3/PDF::API2::Resource::XObject::Image.3
+#usr/share/man/man3/PDF::API2::Resource::XObject::Image::TIFF.3
+#usr/share/man/man3/PDF::API2::Util.3
diff --git a/lfs/perl-PDF-API2 b/lfs/perl-PDF-API2
new file mode 100644 (file)
index 0000000..8b0af9a
--- /dev/null
@@ -0,0 +1,82 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2011  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        = 2.020
+
+THISAPP    = PDF-API2-$(VER)
+DL_FILE    = $(THISAPP).tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = perl-PDF-API2
+PAK_VER    = 1
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = c0d20bfd03883b5b2b2a7fd47455249a
+
+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)
+       cd $(DIR_APP) && make install
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
index af34d7c..6f0fdc3 100644 (file)
@@ -44,7 +44,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP)
        mkdir -p /var/ipfire/accounting/bill
        mkdir -p /srv/web/ipfire/html/accounting/logo
-       chmod -R 777 /srv/web/ipfire/html/accounting
 
 #Touch Logfile
        touch /var/log/accounting.log
@@ -55,7 +54,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        
        install -v -m 755 $(DIR_APP)/squid-accounting/accounting.cgi /srv/web/ipfire/cgi-bin/
        install -v -m 755 $(DIR_APP)/squid-accounting/acct.pl /usr/local/bin/
-       install -v -m 755 $(DIR_APP)/squid-accounting/acct-lib.pl /var/ipfire/accounting/
+       install -v -m 644 $(DIR_APP)/squid-accounting/acct-lib.pl /var/ipfire/accounting/
        install -v -m 655 $(DIR_APP)/squid-accounting/acct.de.pl /var/ipfire/addon-lang/
        install -v -m 655 $(DIR_APP)/squid-accounting/acct.en.pl /var/ipfire/addon-lang/
        install -v -m 655 $(DIR_APP)/squid-accounting/EX-squid-accounting.menu /var/ipfire/menu.d/