summaryrefslogtreecommitdiff
path: root/contrib/redhat-rpm/mini_httpd.spec
blob: 2cab6980b7220b7baaf7e8da5864455ba3f48d93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Summary: small, simple http daemon, supports SSL
Name: mini_httpd
Version: 1.23
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
* Sat Oct 18 2014 <jef@mail.acme.com> Version 1.21
* Thu Jan 08 2004 <jef@mail.acme.com> Version 1.20
* Mon Oct 27 2003 <jef@mail.acme.com> Version 1.19
* Sat Sep 13 2003 <jef@mail.acme.com> Version 1.18
* Sat May 25 2002 <jef@mail.acme.com> Version 1.17
* Mon May 07 2001 <jef@mail.acme.com> Version 1.16
* Tue May 01 2001 <jef@mail.acme.com> Version 1.15c
* Sat Apr 21 2001 <jef@mail.acme.com> Version 1.15b
* Wed Sep 20 2000 <jef@mail.acme.com> Version 1.15
* Thu Jun 15 2000 <jef@mail.acme.com> Version 1.14
* Fri May 26 2000 <jef@mail.acme.com> Version 1.13
* Wed Mar 01 2000 <jef@mail.acme.com> Version 1.12
* Sun Feb 06 2000 <jef@mail.acme.com> Version 1.11
* Wed Feb 02 2000 <jef@mail.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