summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/interactive_http/Makefile
blob: 5607112c9e58ab1a0af46af4e8fc98522f07f615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
NAME=libDrakX
FNAME=$(NAME)/drakxtools_http
PREFIX=
DATADIR=$(PREFIX)/usr/share

all: index.html

index.html: index.html.pl
	perl $^ > $@

install:	
	install -D miniserv.init $(PREFIX)/etc/init.d/drakxtools_http
	install -D -m 644 authorised_progs $(PREFIX)/etc/drakxtools_http/authorised_progs
	install -D -m 644 miniserv.conf $(PREFIX)/etc/drakxtools_http/conf
	install -D -m 644 miniserv.pam $(PREFIX)/etc/pam.d/miniserv
	install -D -m 644 miniserv.logrotate $(PREFIX)/etc/logrotate.d/drakxtools-http

	install -d $(DATADIR)/$(FNAME)/www
	install -m 644 miniserv.pl miniserv.pem miniserv.users $(DATADIR)/$(FNAME)
	install -m 644 index.html $(DATADIR)/$(FNAME)/www
	install interactive_http.cgi $(DATADIR)/$(FNAME)/www