Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37766343
en ru br
ALT Linux repositórios
5.0: 2.6.0-alt0.4
4.1: 2.6.0-alt0.3
4.0: 2.6.0-alt0.3
3.0: 2.4.0-alt1

Group :: Sistema/Configurações/Rede
RPM: guarddog

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%undefine __libtoolize
%define scriptname /etc/rc.d/rc.firewall

Name: guarddog
Version: 2.6.0
Release: alt0.4
Group: System/Configuration/Networking
Summary: Firewall Utility
Url: http://www.simonzone.com/software/guarddog/
License: GPL

Packager: Alex Karpov <karpov at altlinux.ru>

Requires: iptables gawk coreutils sed
Source: %name-%version.tar.gz
Source1: %name-ru.po
Patch1: guarddog-2.5.0-script_place.patch

# Automatically added by buildreq on Tue May 01 2007 (-bi)

BuildRequires: gcc-c++ imake kdelibs-devel libXext-devel libXrender-devel libXt-devel libqt3-devel xorg-cf-files
#BuildPreReq: kdelibs-devel-cxx = %__gcc_version_base
Requires: kdelibs >= %{get_version kdelibs}

%description
Guarddog is user friendly firewall generation and management utility for KDE
on Linux. It allows you to simply specify which protocols should be allowed
between which groups of computers and requires no knowledge of port numbers
or packets. Built on top of ipchains and/or iptables.

%prep
%setup -q
%patch1 -p1
cp %SOURCE1 po/ru.po

subst "s/\(Wl,--no-undefined\)/-Wl,--warn-unresolved-symbols \1/g" ./configure
subst "s/\-lkdeui/-lkdeui -lpthread/g" ./configure
#subst "s/\.la/.so/g" ./configure
#make -f admin/Makefile.common cvs

%build
export CFLAGS="%optflags" CXXFLAGS="%optflags"
./configure --prefix=%_prefix --mandir=%_mandir --libdir=%_libdir \
   --enable-final \
   --disable-static \
   --enable-shared \
   --disable-rpath
#    --with-kde-version=3

%make_build

%install
%make install DESTDIR=%buildroot

%find_lang --with-kde %name

%post
%update_menus
if [ ! -e %scriptname ]; then
 echo "#!/bin/sh" > %scriptname
 echo "# This is just a place holder rc.firewall file so that when the links" >> %scriptname
 echo "# /sbin/ifup-local and /sbin/ifdown-local have something valid to  point to." >> %scriptname
 echo "# It will be over written once the Guarddog configuration utility is used." >> %scriptname
 echo "# --Guarddog, http://www.simonzone.com/software/guarddog/" >> %scriptname
 chmod u+x %scriptname
fi
if [ ! -x /sbin/ifup-local ]; then
 ln -s %scriptname /sbin/ifup-local
else
 if [ ! -L /sbin/ifup-local ]; then
   echo "*** Warning: Could not make a link from /sbin/ifup-local to %scriptname ***"
 fi
fi
if [ ! -x /sbin/ifdown-local ]; then
 ln -s %scriptname /sbin/ifdown-local
else
 if [ ! -L /sbin/ifdown-local ]; then
   echo "*** Warning: Could not make a link from /sbin/ifdown-local to %scriptname ***"
 fi
fi

if [ ! -e /etc/ppp/ip-up.local ]; then
 echo "#!/bin/sh" > /etc/ppp/ip-up.local
 echo "#" >> /etc/ppp/ip-up.local
 echo "# This short script just runs any firewall script located at %scriptname ." >> /etc/ppp/ip-up.local
 echo "# It will be called whenever a ppp interface comes up. Normally we would hook" >> /etc/ppp/ip-up.local
 echo "# our firewall script in via /sbin/ifup-local, but a bug in the" >> /etc/ppp/ip-up.local
 echo "# /etc/ppp/ip-up script prevents that from working. This script provides a" >> /etc/ppp/ip-up.local
 echo "# workaround." >> /etc/ppp/ip-up.local
 echo "#" >> /etc/ppp/ip-up.local
 echo "# cheers, Guardddog http://www.simonzone.com/software/guarddog/" >> /etc/ppp/ip-up.local
 echo "#" >> /etc/ppp/ip-up.local
 echo "[ -x %scriptname ] && %scriptname" >> /etc/ppp/ip-up.local
 chmod u+x /etc/ppp/ip-up.local
fi
if [ ! -e /etc/ppp/ip-down.local ]; then
 echo "#!/bin/sh" > /etc/ppp/ip-down.local
 echo "#" >> /etc/ppp/ip-down.local
 echo "# This short script just runs any firewall script located at %scriptname ." >> /etc/ppp/ip-down.local
 echo "# It will be called whenever a ppp interface goes down. Normally we would hook" >> /etc/ppp/ip-down.local
 echo "# our firewall script in via /sbin/ifdown-local, but a bug in the" >> /etc/ppp/ip-down.local
 echo "# /etc/ppp/ip-down script prevents that from working. This script provides a" >> /etc/ppp/ip-down.local
 echo "# workaround." >> /etc/ppp/ip-down.local
 echo "#" >> /etc/ppp/ip-down.local
 echo "# cheers, Guardddog http://www.simonzone.com/software/guarddog/" >> /etc/ppp/ip-down.local
 echo "#" >> /etc/ppp/ip-down.local
 echo "[ -x %scriptname ] && %scriptname" >> /etc/ppp/ip-down.local
 chmod u+x /etc/ppp/ip-down.local
fi

%postun
%clean_menus

%files -f %name.lang
%doc README TODO AUTHORS COPYING ChangeLog
%_bindir/%name
%_datadir/apps/%name
%_datadir/sgml/protocoldb
# %doc %_docdir/HTML/en/%name
%_iconsdir/*/*/apps/guarddog.png
%_datadir/applnk/System/guarddog.desktop

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009