Delivered.snek wrote:I would love to see an ebuild for this!
Code: Select all
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils
MY_P="${PN}_no-GUI-${PV}"
DESCRIPTION="PeerGuardian helps protect your privacy by blocking many ranges of aggressive IPs while you use P2P"
HOMEPAGE="http://peerguardian.sourceforge.net"
SRC_URI="mirror://sourceforge/project/peerguardian/PeerGuardian%20Linux/${PV}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+dbus debug"
RESTRICT=""
DEPEND="net-libs/libnetfilter_queue
dbus? ( sys-libs/dbus )"
RDEPEND="${DEPEND}
net-firewall/iptables"
#S="${WORKDIR}/${P}"
src_prepare() {
sed -i -e '/^CFLAGS/d' \
-e '/^OPTFLAGS/d' \
Makefile || die "sed failed"
}
src_configure() {
if use dbus; then
sed -i -e '/^DBUS /s: no: yes:' \
Makefile || die "sed failed"
fi
if ! use debug; then
sed -i -e '/^DEBUG /s: yes: no:' \
Makefile || die "sed failed"
fi
}
src_install() {
emake DESTDIR="${D}" libdir="${D}"/usr/$(get_libdir) install || die
dodoc docs/{AUTHORS,BUGS,README,README.blocklists,THANKS,TODO}
exeinto /usr/$(get_libdir)/pgl/
doexe docs/iptables-custom-*
rm -rf "${D}"/etc/network/
}
Code: Select all
newinitd "${FILESDIR}/pgl.initd" ${PN}This is pgl without GUI. We just released pgl 2.1. series that contains a GUI.Code: Select all
MY_P="${PN}_no-GUI-${PV}"
So far I could compile pgl for all current Debian and Ubuntu versions, but I had issues with the upcoming Ubuntu oneiric (build.log here: https://launchpadlibrarian.net/77204036 ... ILD.txt.gz). So I fear you have the same problem. No idea yet what it is.A least one QA issue with the dbus.so library compiled ignoring LDFLAGS.
Doesn't the provided init script work for you. Please have a look at it, and tell me if it has any issues for you.Someone needs to write an init.d script for it, ship it in ${FILESDIR}, and add the relevant block in src_install
Code: Select all
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils
MY_P="${PN}-${PV}"
DESCRIPTION="PeerGuardian helps protect your privacy by blocking many ranges of aggressive IPs while you use P2P"
HOMEPAGE="http://peerguardian.sourceforge.net"
SRC_URI="mirror://sourceforge/project/peerguardian/PeerGuardian%20Linux/${PV}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+dbus debug +qt4"
RESTRICT=""
DEPEND="net-libs/libnetfilter_queue
qt4? ( x11-libs/qt-core )
dbus? ( sys-apps/dbus )"
RDEPEND="${DEPEND} net-firewall/iptables"
#S="${WORKDIR}/${P}"
src_prepare() {
sed -i -e '/^CFLAGS/d' \
-e '/^OPTFLAGS/d' \
Makefile || die "sed failed"
if use qt4; then
sed -i -e 's|QTINC:=.*|QTINC:=/usr/include/qt4|' \
pgl-gui/Makefile || die "sed failed"
sed -i -e 's:-L/usr/lib :-L/usr/lib/qt4 :' \
pgl-gui/Makefile || die "sed failed"
fi
}
src_configure() {
if use dbus; then
sed -i -e '/^DBUS /s: no: yes:' \
Makefile || die "sed failed"
fi
if ! use debug; then
sed -i -e '/^DEBUG /s: yes: no:' \
Makefile || die "sed failed"
fi
if ! use qt4; then
sed -i -e '/^MAKE_PGLGUI /s: yes: no:' \
Makefile || die "sed failed"
fi
}
src_install() {
emake DESTDIR="${D}" libdir="${D}"/usr/$(get_libdir) install || die
dodoc docs/{AUTHORS,BUGS,README,README.blocklists,THANKS,TODO}
exeinto /usr/$(get_libdir)/pgl/
doexe docs/iptables-custom-*
rm -rf "${D}"/etc/network/
}


Ok so I got it installed, built etc.djsmiley2k wrote:Any chance this is going into an overlay somewhere? I'm not experienced with building stuff myself, only emerging it from an overlay
Off to research how to setup my own local overlay anyway but it'd be nice to have it updated etc too.
Code: Select all
Building blocklist ...
Updating tbg_primary-threats... done.
Extracting tbg_primary-threats, detected gz... done.
Updating tbg_search-engines... done.
Extracting tbg_search-engines, detected gz... done.
WARN: Invalid ASCII line:
INFO: ASCII: 761425 entries loaded from "STDIN"
INFO: Merged 549772 of 761425 entries.
INFO: Blocking 211653 IP ranges (2788805615 IPs).
Blocklist built.
Error 170: Could not load kernel module xt_NFQUEUE, not starting pgld! ... failed!
failed!
Code: Select all
Dec 31 22:18:04 INFO: Blocking 211653 IP ranges (2788805615 IPs).
Dec 31 22:18:04 ERROR: Error during nfq_unbind_pf(): Bad file descriptor
Dec 31 22:18:04 ERROR: Error binding to queue.
Did you completely fix that in your patch?hasufell wrote:build system still does not correctly respect CC, CXX, CFLAGS etc.
Any suggestions/requirements/problem reports/patches welcomehasufell wrote:no multilib support
There exists one docs/pgld.1hasufell wrote:manpage is missing
Fixed in your patch!?hasufell wrote:dependencies are incomplete
Where? Please point me to it.hasufell wrote:license is incorrect
?hasufell wrote:second to last line is incorrect
I have to look into this. Feel free to elaborate on this.hasufell wrote:unset TMPDIR during make will lead to TMPDIR=${T} in /usr/lib*/pgl/pglcmd.defaults
Collaborate with mehasufell wrote:Any other suggestions?
jre wrote:There exists one docs/pgld.1hasufell wrote:manpage is missing
IIRC I chose not to install it, because I feared it would break some dists.
In debian I install it and make symlinks for pglcmd and pgl-gui.
jre wrote:Where? Please point me to it.hasufell wrote:license is incorrect
Some parts were GPL2+ licensed. The whole app is GPL3+. Some other stuff is mentioned in debian/copyright (I now see, this should be in the docs/ section.)
jre wrote:?hasufell wrote:second to last line is incorrect
I was referring to the posted ebuild, sry for the confusionjre wrote:I have to look into this. Feel free to elaborate on this.hasufell wrote:unset TMPDIR during make will lead to TMPDIR=${T} in /usr/lib*/pgl/pglcmd.defaults
I think so. But that patch is not written for upstream.jre wrote:Did you completely fix that in your patch?hasufell wrote:build system still does not correctly respect CC, CXX, CFLAGS etc.
Includes and installation destinations in the Makefiles always point to /usr/lib or /usr/local/lib. In Gentoo we might want the location to be pointed at /usr/lib64. That would be fixed with a configure script and a "--libdir" option. Gentoo calls "econf" with the proper arguments then.jre wrote:Any suggestions/requirements/problem reports/patches welcomehasufell wrote:no multilib support
No, fixed in my ebuild. There is no configure-script after all to check for stuff. Make will just fail.jre wrote:Fixed in your patch!?hasufell wrote:dependencies are incomplete
I don't know too much about writing proper configure scripts/build systems myself. Would have to look into that. I might not be your first choice, reallyjre wrote:Collaborate with mehasufell wrote:Any other suggestions?
If you are interested I might give you write access to the sourceforge git repository.
Code: Select all
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -O2 -march=native -pipe -Wl,-export-dynamic -Wl,-O1 -Wl,--as-needed -o pgld pgld.o stream.o blocklist.o parser.o
libtool: link: i686-pc-linux-gnu-gcc -O2 -march=native -pipe -Wl,-export-dynamic -Wl,-O1 -Wl,--as-needed -o pgld pgld.o stream.o blocklist.o parser.o
pgld.o: In function `nfqueue_unbind':
pgld.c:(.text+0x747): undefined reference to `nfq_destroy_queue'
pgld.c:(.text+0x75d): undefined reference to `nfq_unbind_pf'
pgld.c:(.text+0x76f): undefined reference to `nfq_close'
pgld.o: In function `nfqueue_loop':
pgld.c:(.text+0xb13): undefined reference to `nfq_open'
pgld.c:(.text+0xb31): undefined reference to `nfq_unbind_pf'
pgld.c:(.text+0xb4f): undefined reference to `nfq_bind_pf'
pgld.c:(.text+0xbe5): undefined reference to `nfq_create_queue'
pgld.c:(.text+0xc0b): undefined reference to `nfq_set_mode'
pgld.c:(.text+0xc27): undefined reference to `nfq_nfnlh'
pgld.c:(.text+0xc2f): undefined reference to `nfnl_fd'
pgld.c:(.text+0xc4a): undefined reference to `nfq_handle_packet'
pgld.c:(.text+0xcea): undefined reference to `nfq_close'
pgld.c:(.text+0xd2d): undefined reference to `nfq_close'
pgld.c:(.text+0xded): undefined reference to `nfq_destroy_queue'
pgld.c:(.text+0xdfb): undefined reference to `nfq_close'
pgld.o: In function `nfqueue_cb':
pgld.c:(.text+0xe3f): undefined reference to `nfq_get_msg_packet_hdr'
pgld.c:(.text+0xe5f): undefined reference to `nfq_get_payload'
pgld.c:(.text+0xf07): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0xfad): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x1067): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0x1105): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0x115f): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0x1193): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x11c3): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x1213): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x1243): undefined reference to `nfq_set_verdict'
stream.o: In function `stream_open':
stream.c:(.text+0x11d): undefined reference to `inflateInit2_'
stream.o: In function `stream_close':
stream.c:(.text+0x235): undefined reference to `inflateEnd'
stream.o: In function `stream_getline':
stream.c:(.text+0x434): undefined reference to `inflate'
stream.c:(.text+0x49b): undefined reference to `inflateEnd'
stream.c:(.text+0x4dc): undefined reference to `inflateEnd'
collect2: ld returned 1 exit status
make[2]: *** [pgld] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/pgld'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl'
make: *** [all] Error 2Code: Select all
[32;01m * [39;49;00mPackage: net-misc/pglinux-2.1.3_p20120427
[32;01m * [39;49;00mRepository: sunrise
[32;01m * [39;49;00mMaintainer: maintainer-wanted@gentoo.org
[32;01m * [39;49;00mUSE: elibc_glibc kernel_linux logrotate selinux userland_GNU x86 zlib
[32;01m * [39;49;00mFEATURES: sandbox selinux sesandbox
[32;01m*[0m Determining the location of the kernel source code
[32;01m*[0m Found kernel source directory:
[32;01m*[0m /usr/src/linux
[32;01m*[0m Found sources for kernel version:
[32;01m*[0m 3.2.11-hardened_mAch1nA
[32;01m*[0m Checking for suitable kernel configuration options...
[A[148C [34;01m[ [32;01mok[34;01m ][0m
>>> Unpacking source...
>>> Unpacking pglinux-2.1.3_p20120427.tar.xz to /var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work
>>> Source unpacked in /var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work
>>> Preparing source in /var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl ...
* econf: updating pgl/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating pgl/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-cron --disable-dbus --enable-logrotate --disable-networkmanager --enable-zlib --without-qt4
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of i686-pc-linux-gnu-gcc... none
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by i686-pc-linux-gnu-gcc... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for i686-pc-linux-gnu-objdump... i686-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar
checking for archiver @FILE support... @
checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from i686-pc-linux-gnu-gcc object... ok
checking for sysroot... no
checking for i686-pc-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if i686-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if i686-pc-linux-gnu-gcc static flag -static works... yes
checking if i686-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if i686-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the i686-pc-linux-gnu-gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i686-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of i686-pc-linux-gnu-g++... none
checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E
checking for ld used by i686-pc-linux-gnu-g++... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking for i686-pc-linux-gnu-g++ option to produce PIC... -fPIC -DPIC
checking if i686-pc-linux-gnu-g++ PIC flag -fPIC -DPIC works... yes
checking if i686-pc-linux-gnu-g++ static flag -static works... yes
checking if i686-pc-linux-gnu-g++ supports -c -o file.o... yes
checking if i686-pc-linux-gnu-g++ supports -c -o file.o... (cached) yes
checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of i686-pc-linux-gnu-gcc... (cached) none
checking for pkg-config... /usr/bin/pkg-config
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for error_at_line... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking for i686-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libnetfilterqueue... yes
checking for ZLIB... yes
checking for bool... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: creating pgld/Makefile
config.status: creating pglcmd/Makefile
config.status: creating pgl-gui/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
pgl.......................................... : Version 2.1.3
Prefix....................................... : /usr
Logdir....................................... : /var/lib/log/pgl
Piddir....................................... : /var/lib/run
Tmpdir....................................... : /tmp
Blocklists................................... : /var/lib/spool/pgl
Masterblocklist.............................. : /var/lib/lib/pgl
Localblocklist............................... : /etc/pgl/blocklists.local
QT-gui....................................... : no
dbus......................................... : no
zlib......................................... : yes
logrotate.................................... : yes
cron......................................... : no
networkmanager............................... : no
.............................................
developer debug:
PGLD_CFLAGS:
PGLD_CPPFLAGS: -DVERSION=\"2.1.3\" -DPACKAGE_NAME=\"pgl\" -DPIDFILE=\"/var/lib/run/pgld.pid\" -DHAVE_ZLIB
PGLD_LDFLAGS: -Wl,-export-dynamic
PGLD_LIBS: -lnetfilter_queue -lnfnetlink -lz
QT_CXXFLAGS:
QT_CPPFLAGS: -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
QT_LDFLAGS:
QT_LIBS:
.............................................
Homepage http://peerguardian.sourceforge.net/
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl ...
make -j2
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/missing --run autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl'
Making all in docs
make[2]: Entering directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/docs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/docs'
Making all in pglcmd
make[2]: Entering directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/pglcmd'
cat pglcmd.defaults | \
/bin/sed "s|^PATH=.*|PATH=\"/usr/lib/portage/bin/ebuild-helpers/4:/usr/lib/portage/bin/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.3\"|" | \
/bin/sed "s|^BINDIR=.*|BINDIR=\"/usr/bin\"|" | \
/bin/sed "s|^SBINDIR=.*|SBINDIR=\"/usr/sbin\"|" | \
/bin/sed "s|^PIDDIR=.*|PIDDIR=\"/var/lib/run\"|" | \
/bin/sed "s|^LOGDIR=.*|LOGDIR=\"/var/lib/log/pgl\"|" | \
/bin/sed "s|^CONFDIR=.*|CONFDIR=\"/etc/pgl\"|" | \
/bin/sed "s|^LIBDIR=.*|LIBDIR=\"/usr/lib/pgl\"|" | \
/bin/sed "s|^TMPDIR=.*|TMPDIR=\"/tmp\"|" | \
/bin/sed "s|^BLOCKLISTS_DIR=.*|BLOCKLISTS_DIR=\"/var/lib/spool/pgl\"|" | \
/bin/sed "s|^LOCAL_BLOCKLIST_DIR=.*|LOCAL_BLOCKLIST_DIR=\"/etc/pgl/blocklists.local\"|" | \
/bin/sed "s|^MASTER_BLOCKLIST_DIR=.*|MASTER_BLOCKLIST_DIR=\"/var/lib/lib/pgl\"|" | \
/bin/sed "s|^LSB=.*|LSB=\"\"|" | \
/bin/sed "s|^DBUS=.*|DBUS=\"0\"|" > pglcmd.defaults.install
mv -f pglcmd.defaults.install pglcmd.defaults
/bin/sed -i -e "s|^CMD_DEFAULTS=.*|CMD_DEFAULTS=\"/usr/lib/pgl/pglcmd.defaults\"|" pglcmd.main
for FILE in blockcontrol2pglcmd.sh pglcmd pglcmd.wd cron.daily/pglcmd init/pgl ../debian/pglcmd.postinst networkmanager/20pglcmd ; do \
cat $FILE | \
/bin/sed -i -e "s|^CONTROL_MAIN=.*|CONTROL_MAIN=\"/usr/lib/pgl/pglcmd.main\"|" $FILE ; \
done
cat: /bin/sed: can't read ../debian/pglcmd.postinst: No such file or directory
../debian/pglcmd.postinst: No such file or directory
make[2]: Leaving directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/pglcmd'
Making all in pgld
make[2]: Entering directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/pgld'
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=\"2.1.3\" -DPACKAGE_NAME=\"pgl\" -DPIDFILE=\"/var/lib/run/pgld.pid\" -DHAVE_ZLIB -O2 -march=native -pipe -c -o pgld.o `test -f 'src/pgld.c' || echo './'`src/pgld.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=\"2.1.3\" -DPACKAGE_NAME=\"pgl\" -DPIDFILE=\"/var/lib/run/pgld.pid\" -DHAVE_ZLIB -O2 -march=native -pipe -c -o stream.o `test -f 'src/stream.c' || echo './'`src/stream.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=\"2.1.3\" -DPACKAGE_NAME=\"pgl\" -DPIDFILE=\"/var/lib/run/pgld.pid\" -DHAVE_ZLIB -O2 -march=native -pipe -c -o blocklist.o `test -f 'src/blocklist.c' || echo './'`src/blocklist.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=\"2.1.3\" -DPACKAGE_NAME=\"pgl\" -DPIDFILE=\"/var/lib/run/pgld.pid\" -DHAVE_ZLIB -O2 -march=native -pipe -c -o parser.o `test -f 'src/parser.c' || echo './'`src/parser.c
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -O2 -march=native -pipe -Wl,-export-dynamic -Wl,-O1 -Wl,--as-needed -o pgld pgld.o stream.o blocklist.o parser.o
libtool: link: i686-pc-linux-gnu-gcc -O2 -march=native -pipe -Wl,-export-dynamic -Wl,-O1 -Wl,--as-needed -o pgld pgld.o stream.o blocklist.o parser.o
pgld.o: In function `nfqueue_unbind':
pgld.c:(.text+0x747): undefined reference to `nfq_destroy_queue'
pgld.c:(.text+0x75d): undefined reference to `nfq_unbind_pf'
pgld.c:(.text+0x76f): undefined reference to `nfq_close'
pgld.o: In function `nfqueue_loop':
pgld.c:(.text+0xb13): undefined reference to `nfq_open'
pgld.c:(.text+0xb31): undefined reference to `nfq_unbind_pf'
pgld.c:(.text+0xb4f): undefined reference to `nfq_bind_pf'
pgld.c:(.text+0xbe5): undefined reference to `nfq_create_queue'
pgld.c:(.text+0xc0b): undefined reference to `nfq_set_mode'
pgld.c:(.text+0xc27): undefined reference to `nfq_nfnlh'
pgld.c:(.text+0xc2f): undefined reference to `nfnl_fd'
pgld.c:(.text+0xc4a): undefined reference to `nfq_handle_packet'
pgld.c:(.text+0xcea): undefined reference to `nfq_close'
pgld.c:(.text+0xd2d): undefined reference to `nfq_close'
pgld.c:(.text+0xded): undefined reference to `nfq_destroy_queue'
pgld.c:(.text+0xdfb): undefined reference to `nfq_close'
pgld.o: In function `nfqueue_cb':
pgld.c:(.text+0xe3f): undefined reference to `nfq_get_msg_packet_hdr'
pgld.c:(.text+0xe5f): undefined reference to `nfq_get_payload'
pgld.c:(.text+0xf07): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0xfad): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x1067): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0x1105): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0x115f): undefined reference to `nfq_set_verdict_mark'
pgld.c:(.text+0x1193): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x11c3): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x1213): undefined reference to `nfq_set_verdict'
pgld.c:(.text+0x1243): undefined reference to `nfq_set_verdict'
stream.o: In function `stream_open':
stream.c:(.text+0x11d): undefined reference to `inflateInit2_'
stream.o: In function `stream_close':
stream.c:(.text+0x235): undefined reference to `inflateEnd'
stream.o: In function `stream_getline':
stream.c:(.text+0x434): undefined reference to `inflate'
stream.c:(.text+0x49b): undefined reference to `inflateEnd'
stream.c:(.text+0x4dc): undefined reference to `inflateEnd'
collect2: ld returned 1 exit status
make[2]: *** [pgld] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl/pgld'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl'
make: *** [all] Error 2
[31;01m*[0m ERROR: net-misc/pglinux-2.1.3_p20120427 failed (compile phase):
[31;01m*[0m emake failed
[31;01m*[0m
[31;01m*[0m If you need support, post the output of 'emerge --info =net-misc/pglinux-2.1.3_p20120427',
[31;01m*[0m the complete build log and the output of 'emerge -pqv =net-misc/pglinux-2.1.3_p20120427'.
[31;01m*[0m This ebuild is from an overlay named 'sunrise': '/var/lib/layman/sunrise/'
[31;01m*[0m The complete build log is located at '/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/temp/environment'.
[31;01m*[0m S: '/var/tmp/portage/net-misc/pglinux-2.1.3_p20120427/work/pgl'
Code: Select all
Portage 2.1.10.49 (hardened/linux/x86/selinux, gcc-4.5.3, glibc-2.14.1-r3, 3.2.11-hardened_mAch1nA i686)
=================================================================
System uname: Linux-3.2.11-hardened_mAch1nA-i686-Unknown_CPU_Typ-with-gentoo-2.0.3
Timestamp of tree: Tue, 01 May 2012 21:15:01 +0000
app-shells/bash: 4.2_p20
dev-lang/python: 2.6.6-r2, 2.7.2-r3, 3.2.2
dev-util/cmake: 2.8.6-r4
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.68
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.5.3-r2
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r3
Repositories: gentoo sunrise
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo http://mirror.bytemark.co.uk/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl alsa apache2 berkdb bzip2 cdb cdr cli cracklib crypt cups curl cxx dovecot-sasl dri dvd fam gd gdbm gpm hardened iconv imap ipv6 kerberos libwww logrotate maildir managesieve mbox modules mudflap ncurses network-cron nis nls nptl nptlonly open_perms openmp pam pax_kernel pcre perc php pic pop3d postgres pppd readline samba sasl selinux session sieve sockets spell sqlite ssh ssl sysfs tcpd unicode urandom utp vda vhosts winbind x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
If you don't mind please test thisvyedmic wrote:Works. I don't mind dbus, so solved for me. Thanks.