diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-03-08 20:03:37 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-03-08 20:03:37 +0000 |
commit | dbe4a508c86c2a3c6e7af3e66a06fa54d1cdf368 (patch) | |
tree | 58289dd96dbdfd54331316f3523e943b62a078cd /packaging/redhat | |
parent | 20d3008c38c5d25be043ea364378ad0ed10680fb (diff) | |
download | tinyproxy-dbe4a508c86c2a3c6e7af3e66a06fa54d1cdf368.tar.gz tinyproxy-dbe4a508c86c2a3c6e7af3e66a06fa54d1cdf368.zip |
Added the files required for creating tinyproxy RPMs for Redhat based
systems.
Diffstat (limited to '')
-rw-r--r-- | packaging/redhat/tinyproxy-1.5.2-config-patch | 18 | ||||
-rw-r--r-- | packaging/redhat/tinyproxy-initd | 41 | ||||
-rw-r--r-- | packaging/redhat/tinyproxy.spec | 76 |
3 files changed, 135 insertions, 0 deletions
diff --git a/packaging/redhat/tinyproxy-1.5.2-config-patch b/packaging/redhat/tinyproxy-1.5.2-config-patch new file mode 100644 index 0000000..a54dd3a --- /dev/null +++ b/packaging/redhat/tinyproxy-1.5.2-config-patch @@ -0,0 +1,18 @@ +--- doc/tinyproxy.conf 2003-02-01 22:03:25.000000000 -0500 ++++ doc/tinyproxy.conf 2003-02-01 22:05:01.000000000 -0500 +@@ -7,7 +7,7 @@ + # has been bound. + # + User nobody +-Group nogroup ++Group nobody + + # + # Port to listen on. +## -108,7 +108,7 @@ + # are tested against the controls based on order. + # + Allow 127.0.0.1 +- Allow 192.168.1.0/25 ++# Allow 192.168.1.0/25 + diff --git a/packaging/redhat/tinyproxy-initd b/packaging/redhat/tinyproxy-initd new file mode 100644 index 0000000..a1896bd --- /dev/null +++ b/packaging/redhat/tinyproxy-initd @@ -0,0 +1,41 @@ +#!/bin/bash + +# initfile for tinyproxy +# +# description: A small, efficient HTTP/SSL proxy daemon. +# +# processname: tinyproxy +# +# chkconfig 2345 +# + +. /etc/rc.d/init.d/functions + +case "$1" in + start) + echo -n "Starting tinyproxy: " + daemon /usr/sbin/tinyproxy + touch /var/lock/subsys/tinyproxy + echo + ;; + stop) + echo -n "Shutting down tinyproxy: " + killproc tinyproxy + rm -f /var/lock/subsys/tinyproxy + echo + ;; + restart) + $0 stop + $0 start + ;; + status) + status tinyproxy + ;; + *) + echo "Usage: tinyproxy {start|stop|restart|status}" + exit 1 +esac + +exit 0 + + diff --git a/packaging/redhat/tinyproxy.spec b/packaging/redhat/tinyproxy.spec new file mode 100644 index 0000000..c234f33 --- /dev/null +++ b/packaging/redhat/tinyproxy.spec @@ -0,0 +1,76 @@ +Summary: A small, efficient HTTP/SSL proxy daemon. +Name: tinyproxy +Version: 1.5.2 +Release: 1 +License: GPL +Group: System Environment/Daemons +URL: http://tinyproxy.sourceforge.net +Prefix: %{_prefix} +Packager: S. A. Hutchins <sh4d0wstr1f3@yahoo.com> +Source: tinyproxy-1.5.2.tar.gz +Source1: tinyproxy-initd +Patch0: tinyproxy-1.5.2-config-patch +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +tinyproxy is a small, efficient HTTP/SSL proxy daemon released under the GNU +General Public License (GPL). tinyproxy is very useful in a small network +setting, where a larger proxy like Squid would either be too resource +intensive, or a security risk. + +%prep +%setup +%patch + +%build + ./configure --enable-transparent-proxy --prefix=%{_prefix} \ + --mandir=%{_mandir} + make + +%install + if [ "$RPM_BUILD_ROOT" != "/" ]; then + rm -rf $RPM_BUILD_ROOT + fi + + pwd + + cd $RPM_BUILD_DIR/%{name}-%{version} + make install prefix=%{_prefix} DESTDIR="$RPM_BUILD_ROOT" + + mkdir -p $RPM_BUILD_ROOT/etc/init.d + cp -f $RPM_SOURCE_DIR/tinyproxy-initd $RPM_BUILD_ROOT/etc/init.d/tinyproxy + +%files +%defattr(-, root, root) + %{_sbindir}/tinyproxy + %{_mandir}/* + +%defattr(0755, root, root) + /etc/init.d/tinyproxy + +%defattr(0600, root, root) + /etc/tinyproxy/tinyproxy.conf + /etc/tinyproxy/tinyproxy.conf-dist + +%doc AUTHORS COPYING INSTALL NEWS README TODO +%doc ChangeLog +%doc doc/filter-howto.txt +%doc doc/HTTP_ERROR_CODES +%doc doc/releases.txt +%doc doc/RFC_INFO +%doc doc/report.sh + +%clean + if [ "$RPM_BUILD_DIR" != "/" ]; then + rm -rf $RPM_BUILD_DIR/%{name}-%{version} + fi + if [ "$RPM_BUILD_ROOT" != "/" ]; then + rm -rf $RPM_BUILD_ROOT + fi + +%changelog +* Sat Feb 01 2003 S. A. Hutchins +- From the depths of the void this beast I spawn. I added an initrd script for + this so it can be started/stopped from /sbin/service. My version of RedHat + doesn't have a 'nogroup' so used nobody instead. + |