Commit cdebf916 authored by Erick Hitter's avatar Erick Hitter

Add flags to create directories during install

parent 52a628ab
Pipeline #1112 failed with stage
in 1 minute and 32 seconds
...@@ -7,7 +7,7 @@ before_script: ...@@ -7,7 +7,7 @@ before_script:
# Relies on latest binary build artifact from # Relies on latest binary build artifact from
- curl -o nginx-build "${NGINX_BINARY}" - curl -o sources/usr/sbin/nginx "${NGINX_BINARY}"
after_script: after_script:
- ls -la $CI_BUILDS_DIR - ls -la $CI_BUILDS_DIR
...@@ -20,4 +20,4 @@ package: ...@@ -20,4 +20,4 @@ package:
- debuild -us -uc - debuild -us -uc
artifacts: artifacts:
paths: paths:
- nginx_${NGINX_VERSION}*.deb - nginx*
#!/usr/bin/make -f #!/usr/bin/make -f
export DESTROOT=$(CURDIR)/debian/nginx
%: %:
dh $@ dh $@
override_dh_auto_install: override_dh_auto_install:
dh_auto_install dh_auto_install
install etc/default/nginx /etc/default/nginx install -D -p etc/default/nginx $(DESTROOT)/etc/default/nginx
install etc/init.d/nginx /etc/init.d/nginx install -D -p etc/init.d/nginx $(DESTROOT)/etc/init.d/nginx
install etc/logrotate.d/nginx /etc/logrotate.d/nginx install -D -p etc/logrotate.d/nginx $(DESTROOT)/etc/logrotate.d/nginx
install etc/nginx/ /etc/nginx/ install -d -p etc/nginx/ $(DESTROOT)/etc/nginx/
install usr/lib/nginx/modules/ /usr/lib/nginx/modules/ install -d -p usr/lib/nginx/modules/ $(DESTROOT)/usr/lib/nginx/modules/
install -m 0755 ../nginx-build /usr/sbin/nginx install -D -p -m 0755 usr/sbin/nginx $(DESTROOT)/usr/sbin/nginx
install usr/share/doc/nginx/ /usr/share/doc/nginx/ install -d -p usr/share/doc/nginx/ $(DESTROOT)/usr/share/doc/nginx/
install usr/share/nginx/ /usr/share/nginx/ install -d -p usr/share/nginx/ $(DESTROOT)/usr/share/nginx/
install var/cache/nginx/ /var/cache/nginx/ install -d -p var/cache/nginx/ $(DESTROOT)/var/cache/nginx/
install var/log/nginx/ /var/log/nginx/ install -d -p var/log/nginx/ $(DESTROOT)/var/log/nginx/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment