pakur.sh 622 B

123456789101112131415161718192021222324252627
  1. make DESTDIR="$PKG" install
  2. cp -f $SRC/nginx.conf "$PKG"/etc/nginx/
  3. rm "$PKG"/etc/nginx/*.default
  4. install -d "$PKG"/var/lib/nginx
  5. install -dm700 "$PKG"/var/lib/nginx/proxy
  6. chmod 755 "$PKG"/var/log/nginx
  7. chown root:root "$PKG"/var/log/nginx
  8. mkdir -p $PKG/var/www/
  9. mv "$PKG"/etc/nginx/html $PKG/var/www/nginx
  10. install -Dm644 ../nginx-logrotate "$PKG"/etc/logrotate.d/nginx
  11. rmdir "$PKG"/run
  12. install -d "$PKG"/usr/share/man/man8/
  13. gzip -9c man/nginx.8 > "$PKG"/usr/share/man/man8/nginx.8.gz
  14. for i in ftdetect indent syntax; do
  15. install -Dm644 contrib/vim/$i/nginx.vim \
  16. "$PKG/usr/share/vim/vimfiles/$i/nginx.vim"
  17. done