Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Morloth
TinyProxy
tinyproxy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tinyproxy.spec of Package TinyProxy
# # spec file for package # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: tinyproxy Version: 1.8.3 Release: 32.1 License: GPL Summary: NetPolice Tiny Url: http://netpolice.ru Group: Web Source: %{name}-%{version}.tar.gz # w3m, jakarta-commons-io >= 1.2 needed by fop, jakarta-commons-io >= 1.1 needed by xmlgraphics-commons, #For Mandriva # w3m jakarta-commons-io >= 1.2 needed fop, jakarta-commons-io >= 1.1 needed xmlgraphics-commons, have choice for jaxp_parser_impl needed by xalan-j2: java-1.5.0-gcj xerces-j2 %if 0%{?mdkversion} BuildRequires: asciidoc, xmlto, xsltproc BuildRequires: libxslt-devel BuildRequires: xerces-j2 #autoconf, java-1.5.0-gcj, automake #BuildRequires: python, python-devel, dos2unix %if 0%{?mdkversion} == 201100 Suggests: w3m BuildRequires: jakarta-commons-io #BuildRequires: libpulseaudio0, lib64pulseaudio0, libalsa-plugins-pulseaudio, lib64alsa-plugins-pulseaudio %endif #Suggests: dblatex #Suggests: w3m jakarta-commons-io #Suggests: jakarta-commons-io #For other OS %else BuildRequires: asciidoc libxslt %endif Requires: iptables logrotate %if 0%{?suse_version} BuildRequires: syslogd sysconfig Requires(pre): %insserv_prereq %fillup_prereq %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description A lightweight, non-caching, optioanally annonynizing http proxy. Based on tinyproxy. With some modification. %prep %setup -q %build ./autogen.sh %configure --prefix=/usr/ --sysconfdir=/etc --bindir=/usr/sbin --mandir=/usr/share/man \ --enable-filter \ --enable-transparent \ --enable-regexcheck \ --enable-xtinyproxy \ --enable-reverse \ --enable-upstream make %{?_smp_mflags} %install %if 0%{?mdkversion} make DESTDIR=%{buildroot} install %else %make_install %endif #clean directory #rm -rf $RPM_BUILD_ROOT #make DESTDIR=$RPM_BUILD_ROOT install mkdir -p %{buildroot}/var/log/tinyproxy mkdir -p %{buildroot}%{_initrddir} mkdir -p %{buildroot}/etc/logrotate.d chmod 750 %{buildroot}/var/log/tinyproxy cp %{_sourcedir}/tinyproxy.logrotate %{buildroot}/etc/logrotate.d/tinyproxy if [ -f /etc/rc.status ]; then cp %{_sourcedir}/tinyproxy.init.lsb %{buildroot}%{_initrddir}/tinyproxy elif [ -f /etc/init.d/functions ]; then cp %{_sourcedir}/tinyproxy.init.rh %{buildroot}%{_initrddir}/tinyproxy fi chmod 755 %{buildroot}%{_initrddir}/tinyproxy %if 0%{?suse_version} mkdir -p %{buildroot}%{_sbindir} ln -sf %{_initrddir}/tinyproxy %{buildroot}%{_sbindir}/rctinyproxy %endif %clean %{?buildroot:%__rm -rf "%{buildroot}"} %pre if ! grep -q "^netpolice:" /etc/group then groupadd -r netpolice fi if ! grep -q "^netpolice:" /etc/passwd then useradd --system -d "/nonexistent" -c "NetPolice User" -g netpolice -s /bin/false netpolice fi %post #find iptables IPT="`whereis iptables| awk '{ print $2 }'`" sed -i "s@IPT=[A-Za-z\/.]*@IPT=${IPT}@" /etc/init.d/tinyproxy %if 0%{?suse_version} #denny notrack for lo if [ -f /etc/sysconfig/SuSEfirewall2 ]; then sed -i 's@FW_LO_NOTRACK=\"[a-z]{2,3}*\"@FW_LO_NOTRACK="no"@' /etc/sysconfig/SuSEfirewall2 fi %endif #insert allow network address in conffile ADD=`ifconfig|grep "inet addr:"|awk '{ print $2 }'|cut -d ':' -f 2` for x in $ADD do echo "Allow $x" >> /etc/tinyproxy.conf done #Add in start up %if 0%{?suse_version} #%fillup_and_insserv syslog #%fillup_and_insserv network %fillup_and_insserv tinyproxy %restart_on_update tinyproxy %else if [ -x /usr/lib/lsb/install_initd ]; then /usr/lib/lsb/install_initd -e /etc/init.d/tinyproxy elif [ -x /sbin/chkconfig ]; then /sbin/chkconfig --add tinyproxy fi %endif %preun %if 0%{?suse_version} %stop_on_removal tinyproxy %else #only in uninstall, not on upgrades. if [ $1 = 0 ]; then /etc/init.d/tinyproxy stop > /dev/null 2>&1 if [ -x /usr/lib/lsb/remove_initd ]; then /usr/lib/lsb/remove_initd /etc/init.d/tinyproxy elif [ -x /sbin/chkconfig ]; then /sbin/chkconfig --del tinyproxy fi fi %endif %postun %if 0%{?suse_version} %insserv_cleanup %endif %files %defattr(-,root,root) #%doc ChangeLog README COPYING %doc %{_mandir}/man?/* %{_sbindir}/tinyproxy %if 0%{?suse_version} %{_sbindir}/rctinyproxy %endif %{_datadir}/tinyproxy %{_datadir}/tinyproxy/*.html %config(noreplace) %{_sysconfdir}/ %{_localstatedir}/log/tinyproxy/ %{_initrddir}/tinyproxy %{_sysconfdir}/logrotate.d/tinyproxy %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor