rules 1.57 KB
Newer Older
Erick Hitter's avatar
Erick Hitter committed
1
#!/usr/bin/make -f
2 3 4

export DESTROOT=$(CURDIR)/debian/nginx

Erick Hitter's avatar
Erick Hitter committed
5 6
%:
	dh $@
Erick Hitter's avatar
Erick Hitter committed
7 8 9

override_dh_auto_install:
	dh_auto_install
10
	install -D -p -m 0755 ../nginx-build $(DESTROOT)/usr/sbin/nginx
11 12 13
	install -D -p etc/default/nginx $(DESTROOT)/etc/default/nginx
	install -D -p etc/init.d/nginx $(DESTROOT)/etc/init.d/nginx
	install -D -p etc/logrotate.d/nginx $(DESTROOT)/etc/logrotate.d/nginx
14 15 16 17 18 19 20 21 22 23
	install -D -p etc/nginx/fastcgi_params $(DESTROOT)/etc/nginx/fastcgi_params
	install -D -p etc/nginx/koi-utf $(DESTROOT)/etc/nginx/koi-utf
	install -D -p etc/nginx/koi-win $(DESTROOT)/etc/nginx/koi-win
	install -D -p etc/nginx/mime.types $(DESTROOT)/etc/nginx/mime.types
	install -D -p etc/nginx/nginx.conf $(DESTROOT)/etc/nginx/nginx.conf
	install -D -p etc/nginx/scgi_params $(DESTROOT)/etc/nginx/scgi_params
	install -D -p etc/nginx/uwsgi_params $(DESTROOT)/etc/nginx/uwsgi_params
	install -D -p etc/nginx/wint-utf $(DESTROOT)/etc/nginx/win-utf
	install -D -p etc/nginx/conf.d/default.conf $(DESTROOT)/etc/nginx/conf.d/default.conf
	install -d -p etc/nginx/modules $(DESTROOT)/etc/nginx/modules
24
	install -d -p usr/lib/nginx/modules/ $(DESTROOT)/usr/lib/nginx/modules/
25 26 27 28
	install -D -p usr/share/doc/nginx/copyright $(DESTROOT)/usr/share/doc/nginx/copyright
	install -D -p usr/share/doc/nginx/README $(DESTROOT)/usr/share/doc/nginx/README
	install -D -p usr/share/nginx/html/50x.html $(DESTROOT)/usr/share/nginx/html/50x.html
	install -D -p usr/share/nginx/html/index.html $(DESTROOT)/usr/share/nginx/html/index.html
29 30
	install -d -p var/cache/nginx/ $(DESTROOT)/var/cache/nginx/
	install -d -p var/log/nginx/ $(DESTROOT)/var/log/nginx/