| 
									
										
										
										
											2016-02-20 22:21:41 +00:00
										 |  |  | # Copyright 2016 Julian Ospald <hasufell@posteo.de> | 
					
						
							|  |  |  | # Distributed under the terms of the GNU General Public License v2 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-22 14:10:55 +00:00
										 |  |  | MY_PNV="pgl-${PV}" | 
					
						
							| 
									
										
										
										
											2016-02-20 22:21:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-13 20:41:29 +00:00
										 |  |  | require systemd-service | 
					
						
							| 
									
										
										
										
											2016-05-23 01:44:37 +00:00
										 |  |  | require openrc-service | 
					
						
							| 
									
										
										
										
											2016-04-22 14:10:55 +00:00
										 |  |  | require gtk-icon-cache | 
					
						
							|  |  |  | require sourceforge [ project=peerguardian suffix=tar.gz ] | 
					
						
							| 
									
										
										
										
											2016-02-20 22:21:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | SUMMARY="Privacy oriented firewall application" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | LICENCES="GPL-3" | 
					
						
							|  |  |  | PLATFORMS="~amd64 ~x86" | 
					
						
							|  |  |  | SLOT="0" | 
					
						
							|  |  |  | MYOPTIONS="
 | 
					
						
							|  |  |  |     dbus | 
					
						
							|  |  |  |     gui [[ requires = [ dbus ] ]] | 
					
						
							|  |  |  | "
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DEPENDENCIES="
 | 
					
						
							|  |  |  |     build: | 
					
						
							|  |  |  |         virtual/pkg-config | 
					
						
							|  |  |  |         sys-devel/libtool | 
					
						
							|  |  |  |     build+run: | 
					
						
							|  |  |  |         net-libs/libnetfilter_queue | 
					
						
							|  |  |  |         net-libs/libnfnetlink | 
					
						
							|  |  |  |         gui? ( | 
					
						
							| 
									
										
										
										
											2016-02-21 12:45:20 +00:00
										 |  |  |             sys-auth/polkit-qt[qt4] | 
					
						
							| 
									
										
										
										
											2016-02-20 22:21:41 +00:00
										 |  |  |             x11-libs/qt:4[dbus] | 
					
						
							|  |  |  |         ) | 
					
						
							|  |  |  |     run: | 
					
						
							|  |  |  |         net-firewall/iptables | 
					
						
							|  |  |  |         sys-apps/sysvinit | 
					
						
							|  |  |  |     recommendation: | 
					
						
							|  |  |  |         virtual/unzip [[ description = [ needed for blocklists packed as .zip ] ]] | 
					
						
							|  |  |  |     suggestion: | 
					
						
							|  |  |  |         app-admin/logrotate [[ description = [ Use logrotate for rotating | 
					
						
							|  |  |  |                                                logs ] ]] | 
					
						
							|  |  |  |         app-arch/p7zip [[ description = [ needed for blocklists packed as .7z ] ]] | 
					
						
							|  |  |  |         net-apps/NetworkManager [[ description = [ pglinux provides a | 
					
						
							|  |  |  |                                                    networkmanager script ]  ]] | 
					
						
							| 
									
										
										
										
											2016-05-13 20:41:29 +00:00
										 |  |  |         virtual/cron [[ description = [ to send daily reports ] ]] | 
					
						
							| 
									
										
										
										
											2016-02-20 22:21:41 +00:00
										 |  |  |         virtual/mta [[ description = [ needed to send informational (blocklist | 
					
						
							|  |  |  |                                        updates) and warning mails (if pglcmd.wd | 
					
						
							|  |  |  |                                        detects a problem.) ] ]] | 
					
						
							| 
									
										
										
										
											2016-02-21 12:45:20 +00:00
										 |  |  |     suggestion: | 
					
						
							|  |  |  |         gui? ( | 
					
						
							|  |  |  |             app-admin/ktsuss [[ description = [ make pglinux use ktsuss for graphical sudo ] ]] | 
					
						
							| 
									
										
										
										
											2017-11-09 21:27:52 +00:00
										 |  |  |             kde/kde-cli-toos:4 [[ description = [ make pglinux use kdesu for graphical sudo ] ]] | 
					
						
							| 
									
										
										
										
											2016-02-21 12:45:20 +00:00
										 |  |  |         ) | 
					
						
							| 
									
										
										
										
											2016-02-20 22:21:41 +00:00
										 |  |  | "
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-22 14:10:55 +00:00
										 |  |  | WORK=${WORKBASE}/${MY_PNV} | 
					
						
							| 
									
										
										
										
											2016-02-20 22:21:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | DEFAULT_SRC_CONFIGURE_PARAMS=( | 
					
						
							|  |  |  |     --localstatedir=/var | 
					
						
							|  |  |  |     --with-piddir=/run | 
					
						
							|  |  |  |     --docdir=/usr/share/doc/${PNVR} | 
					
						
							|  |  |  |     --enable-logrotate | 
					
						
							|  |  |  |     --enable-cron | 
					
						
							|  |  |  |     --enable-networkmanager | 
					
						
							|  |  |  |     --enable-zlib | 
					
						
							|  |  |  |     --disable-lowmem | 
					
						
							|  |  |  |     --with-iconsdir=/usr/share/icons/hicolor/128x128/apps | 
					
						
							|  |  |  |     --with-gentoo-init | 
					
						
							|  |  |  |     --with-systemd="${SYSTEMDSYSTEMUNITDIR}" | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( | 
					
						
							|  |  |  |     'dbus' | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( | 
					
						
							|  |  |  |     'gui qt4' | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | src_install() { | 
					
						
							| 
									
										
										
										
											2016-02-20 22:24:03 +00:00
										 |  |  |     default | 
					
						
							|  |  |  |     keepdir /var/{lib,log,spool}/pgl | 
					
						
							| 
									
										
										
										
											2016-02-20 22:21:41 +00:00
										 |  |  |     keepdir /etc/pgl/blocklists.local | 
					
						
							| 
									
										
										
										
											2016-02-20 22:24:03 +00:00
										 |  |  |     edo rm -r "${IMAGE%/}"/{tmp,run} | 
					
						
							| 
									
										
										
										
											2016-05-23 01:44:37 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     openrc_expart /etc/init.d/pgl | 
					
						
							| 
									
										
										
										
											2016-02-20 22:21:41 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 |