X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=lfs%2Ffoomatic;h=b20f7ad038ced76fc43cb1afb86c651728d73459;hp=5b5e83a844cdaf2e760e17031222ef486462ebed;hb=ea8a02c232835200d5ea37d4c72e75b864beb8b0;hpb=70df830214c97a68fcb7e89ae0d7df58c35590be diff --git a/lfs/foomatic b/lfs/foomatic index 5b5e83a844..b20f7ad038 100644 --- a/lfs/foomatic +++ b/lfs/foomatic @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2018 IPFire Team # # # # 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 # @@ -24,39 +24,41 @@ include Config -DATE = 20070813 -VER = 3.0-20070813 +VER = 4.0.9 +VER_DB = 4.0-$(DATE) +VER_FILTERS = 4.0.17 +DATE = 20131023 THISAPP = foomatic-$(VER) -DL_FILE = foomatic-filters-$(VER).tar.gz +DL_FILE = foomatic-filters-$(VER_FILTERS).tar.gz DL_FROM = $(URL_IPFIRE) -DIR_APP = $(DIR_SRC)/foomatic-filters-$(VER) +DIR_APP = $(DIR_SRC)/foomatic-filters-$(VER_FILTERS) TARGET = $(DIR_INFO)/$(THISAPP) PROG = foomatic -PAK_VER = 1 +PAK_VER = 3 -DESCDE = "Foomatic beinhaltet Filter und Treiber für CUPS." -DESCEN = "Foomatic is a collection of filters and ppds for cups." -DEPS = "cups ghostscript" +DEPS = "cups ghostscript libtiff hplip" + +export LIB_CUPS=/usr/lib/cups +export CUPS_BACKENDS=/usr/lib/cups/backends +export CUPS_FILTERS=/usr/lib/cups/filters +export CUPS_PPDS=/usr/share/cups/model ############################################################################### # Top-level Rules ############################################################################### objects = $(DL_FILE) \ - foomatic-db-$(DATE).tar.gz \ - foomatic-db-engine-$(VER).tar.gz \ - foomatic-db-hpijs-$(DATE).tar.gz + foomatic-db-$(VER_DB).tar.gz \ + foomatic-db-engine-$(VER).tar.gz $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -foomatic-db-$(DATE).tar.gz = $(DL_FROM)/foomatic-db-$(DATE).tar.gz +foomatic-db-$(VER_DB).tar.gz = $(DL_FROM)/foomatic-db-$(VER_DB).tar.gz foomatic-db-engine-$(VER).tar.gz = $(DL_FROM)/foomatic-db-engine-$(VER).tar.gz -foomatic-db-hpijs-$(DATE).tar.gz = $(DL_FROM)/foomatic-db-hpijs-$(DATE).tar.gz -$(DL_FILE)_MD5 = 41de0f45866ab4c19c1d5e3e2cdab42f -foomatic-db-$(DATE).tar.gz_MD5 = a3ab04b7cc5d870b040ffce19e664698 -foomatic-db-engine-$(VER).tar.gz_MD5 = ec9639719a9c1d4095248e534c3f2d0d -foomatic-db-hpijs-$(DATE).tar.gz_MD5 = e59fa189336e96a9d43cfcfb6222a9c2 +$(DL_FILE)_MD5 = b05f5dcbfe359f198eef3df5b283d896 +foomatic-db-$(VER_DB).tar.gz_MD5 = ffe38b354cb06a1f3d5e3b01b7e58b0e +foomatic-db-engine-$(VER).tar.gz_MD5 = 5b33c1adb21e7b6f3652e9a18d0e6f4e install : $(TARGET) @@ -90,9 +92,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_SRC)/foomatic-* && cd $(DIR_SRC) && \ tar zxf $(DIR_DL)/$(DL_FILE) && \ - tar zxf $(DIR_DL)/foomatic-db-$(DATE).tar.gz && \ - tar zxf $(DIR_DL)/foomatic-db-engine-$(VER).tar.gz && \ - tar zxf $(DIR_DL)/foomatic-db-hpijs-$(DATE).tar.gz + tar zxf $(DIR_DL)/foomatic-db-$(VER_DB).tar.gz && \ + tar zxf $(DIR_DL)/foomatic-db-engine-$(VER).tar.gz cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install @@ -102,8 +103,20 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_SRC)/foomatic-db-engine-$(VER) && ./configure --prefix=/usr --sysconfdir=/etc cd $(DIR_SRC)/foomatic-db-engine-$(VER) && make $(MAKETUNING) cd $(DIR_SRC)/foomatic-db-engine-$(VER) && make install - cd $(DIR_SRC)/foomatic-db-hpijs-$(DATE) && ./configure --prefix=/usr --sysconfdir=/etc - cd $(DIR_SRC)/foomatic-db-hpijs-$(DATE) && make $(MAKETUNING) - cd $(DIR_SRC)/foomatic-db-hpijs-$(DATE) && make install + + # Remove unwanted files + rm -rfv /usr/lib/ppr \ + /etc/foomatic/filter.conf.sample \ + /usr/share/foomatic/templates + + -mkdir -pv /var/cache/foomatic + + -mkdir -pv /etc/foomatic + echo "cups" > /etc/foomatic/defaultspooler + + -mkdir -pv /usr/lib/cups/filter + ln -svf ../../../bin/foomatic-rip /usr/lib/cups/filter/foomatic-rip + ln -svf ../../../bin/foomatic-ppdfile /usr/lib/cups/filter/foomatic-ppdfile + @rm -rf $(DIR_SRC)/foomatic-* @$(POSTBUILD)