rules 1.73 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
Erick Hitter's avatar
Erick Hitter committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
	install -D -p -m 0644 etc/default/nginx $(DESTROOT)/etc/default/nginx
	install -D -p -m 0644 etc/init.d/nginx $(DESTROOT)/etc/init.d/nginx
	install -D -p -m 0644 etc/logrotate.d/nginx $(DESTROOT)/etc/logrotate.d/nginx
	install -D -p -m 0644 etc/nginx/fastcgi_params $(DESTROOT)/etc/nginx/fastcgi_params
	install -D -p -m 0644 etc/nginx/koi-utf $(DESTROOT)/etc/nginx/koi-utf
	install -D -p -m 0644 etc/nginx/koi-win $(DESTROOT)/etc/nginx/koi-win
	install -D -p -m 0644 etc/nginx/mime.types $(DESTROOT)/etc/nginx/mime.types
	install -D -p -m 0644 etc/nginx/nginx.conf $(DESTROOT)/etc/nginx/nginx.conf
	install -D -p -m 0644 etc/nginx/scgi_params $(DESTROOT)/etc/nginx/scgi_params
	install -D -p -m 0644 etc/nginx/uwsgi_params $(DESTROOT)/etc/nginx/uwsgi_params
	install -D -p -m 0644 etc/nginx/win-utf $(DESTROOT)/etc/nginx/win-utf
	install -D -p -m 0644 etc/nginx/conf.d/default.conf $(DESTROOT)/etc/nginx/conf.d/default.conf
	install -d -p -m 0755 etc/nginx/modules $(DESTROOT)/etc/nginx/modules
	install -d -p -m 0755 usr/lib/nginx/modules/ $(DESTROOT)/usr/lib/nginx/modules/
	install -D -p -m 0644 usr/share/doc/nginx/copyright $(DESTROOT)/usr/share/doc/nginx/copyright
	install -D -p -m 0644 usr/share/doc/nginx/README $(DESTROOT)/usr/share/doc/nginx/README
	install -D -p -m 0644 usr/share/nginx/html/50x.html $(DESTROOT)/usr/share/nginx/html/50x.html
	install -D -p -m 0644 usr/share/nginx/html/index.html $(DESTROOT)/usr/share/nginx/html/index.html
	install -d -p -m 0755 var/cache/nginx/ $(DESTROOT)/var/cache/nginx/
	install -d -p -m 0755 var/log/nginx/ $(DESTROOT)/var/log/nginx/