diff options
Diffstat (limited to 'contrib/redhat-rpm')
-rwxr-xr-x | contrib/redhat-rpm/mini_httpd.init | 50 | ||||
-rw-r--r-- | contrib/redhat-rpm/mini_httpd.spec | 79 |
2 files changed, 129 insertions, 0 deletions
diff --git a/contrib/redhat-rpm/mini_httpd.init b/contrib/redhat-rpm/mini_httpd.init new file mode 100755 index 0000000..0713ed7 --- /dev/null +++ b/contrib/redhat-rpm/mini_httpd.init @@ -0,0 +1,50 @@ +#!/bin/sh +# mini_httpd startup script +# Nelson Minar <nelson@monkey.org> Thu Dec 30 13:54:31 PST 1999 +# the following two lines added 2000-01-31 by Bennett Todd <bet@rahul.net> +# chkconfig: 2345 99 01 +# description: control script for mini_httpd + + +# configuration options: + +DOCROOT=/home/httpd/html +LOGFILE=/var/log/httpd/mini_httpd +PIDFILE=/var/run/mini_httpd.pid +HTTPD=/usr/bin/mini_httpd + +. /etc/rc.d/init.d/functions + +case "$1" in + start) + if [ ! -d $DOCROOT ]; then + echo "mini_httpd: $DOCROOT does not exist." + exit 1; + fi + cd $DOCROOT + action "Starting mini_httpd" $HTTPD -l $LOGFILE -i $PIDFILE; + touch /var/lock/subsys/httpd + ;; + + stop) + echo -n "Stopping mini_httpd " + killproc mini_httpd + echo + rm -f /var/lock/subsys/httpd $PIDFILE + ;; + + status) + status mini_httpd + ;; + + restart|reload) + $0 stop + $0 start + ;; + + *) + echo "Usage: mini_httpd {start|stop|status|restart|reload}" + ;; +esac + +exit 0 diff --git a/contrib/redhat-rpm/mini_httpd.spec b/contrib/redhat-rpm/mini_httpd.spec new file mode 100644 index 0000000..14d88ad --- /dev/null +++ b/contrib/redhat-rpm/mini_httpd.spec @@ -0,0 +1,79 @@ +Summary: small, simple http daemon, supports SSL +Name: mini_httpd +Version: 1.19 +Release: 1 +Copyright: Freely Redistributable +Packager: Bennett Todd <bet@mordor.net> +Group: Networking/Daemons +URL: http://www.acme.com/software/mini_httpd/ +Source: http://www.acme.com/software/mini_httpd-%{PACKAGE_VERSION}.tar.gz +BuildRoot: /var/tmp/mini_httpd-rpmbuild +Requires: openssl +%description + +Simple and small HTTP daemon supporting SSL + +%prep +%setup + +%build +make SSL_INCDIR=/usr/include/openssl \ + SSL_LIBDIR=/usr/lib \ + SSL_DEFS=-DUSE_SSL \ + SSL_INC=-I/usr/include/openssl \ + SSL_LIBS='-lssl -lcrypto' \ + BINDIR=/usr/bin \ + MANDIR=/usr/man \ + CFLAGS='-g -DUSE_SSL -I/usr/include/openssl' + +%install +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d +mkdir -p $RPM_BUILD_ROOT/usr/bin +mkdir -p $RPM_BUILD_ROOT/usr/man/man1 +mkdir -p $RPM_BUILD_ROOT/usr/man/man8 +mkdir -p $RPM_BUILD_ROOT/home/httpd/html +make BINDIR=$RPM_BUILD_ROOT/usr/bin \ + MANDIR=$RPM_BUILD_ROOT/usr/man \ + install +install index.html $RPM_BUILD_ROOT/home/httpd/html +install contrib/redhat-rpm/mini_httpd.init \ + $RPM_BUILD_ROOT/etc/rc.d/init.d/mini_httpd + +%post +/sbin/chkconfig mini_httpd reset + +%preun +/etc/rc.d/init.d/mini_httpd stop +/sbin/chkconfig --level 0123456 mini_httpd off + +%files +%defattr(-,root,root) + +/usr/bin/* +/home/httpd/html/index.html +%attr(0755,root,root) /etc/rc.d/init.d/mini_httpd +%doc /usr/man/*/* +%doc [A-Z]* + + +%changelog +* Mon Oct 27 2003 <jef@acme.com> Version 1.19 +* Sat Sep 13 2003 <jef@acme.com> Version 1.18 +* Sat May 25 2002 <jef@acme.com> Version 1.17 +* Mon May 07 2001 <jef@acme.com> Version 1.16 +* Tue May 01 2001 <jef@acme.com> Version 1.15c +* Sat Apr 21 2001 <jef@acme.com> Version 1.15b +* Wed Sep 20 2000 <jef@acme.com> Version 1.15 +* Thu Jun 15 2000 <jef@acme.com> Version 1.14 +* Fri May 26 2000 <jef@acme.com> Version 1.13 +* Wed Mar 01 2000 <jef@acme.com> Version 1.12 +* Sun Feb 06 2000 <jef@acme.com> Version 1.11 +* Wed Feb 02 2000 <jef@acme.com> Version 1.10 +* Mon Jan 31 2000 <bet@rahul.net> Version 1.09, added init script +* Wed Jan 19 2000 <bet@rahul.net> Version 1.08, reset release to 1 +* Mon Dec 13 1999 <bet@mordor.net> + - Added defattr to %files, bumped Release to 2 +* Sat Dec 11 1999 <bet@mordor.net> + - Bumped version to 19991210, switched source from oct to dec +* Fri Dec 10 1999 <bet@mordor.net> + - Initial Wrap |