2019-02-02
4.16.1
diff --git a/pisi-index.xml.sha1sum b/pisi-index.xml.sha1sum
index a14c480ec5..c51c1a3dfb 100644
--- a/pisi-index.xml.sha1sum
+++ b/pisi-index.xml.sha1sum
@@ -1 +1 @@
-2cf8b014dd0318d3837a2c85c211b6140dfea28c
\ No newline at end of file
+311efe11e122474e58b15c843572c0582ee49154
\ No newline at end of file
diff --git a/pisi-index.xml.xz b/pisi-index.xml.xz
index a2952f5a74..edcff87f8b 100644
Binary files a/pisi-index.xml.xz and b/pisi-index.xml.xz differ
diff --git a/pisi-index.xml.xz.sha1sum b/pisi-index.xml.xz.sha1sum
index 2d5ef672d7..7d80f96342 100644
--- a/pisi-index.xml.xz.sha1sum
+++ b/pisi-index.xml.xz.sha1sum
@@ -1 +1 @@
-52304b5860d1c9ea4ab802f34c78dc1a6606a8d3
\ No newline at end of file
+4ac908534861bfc14ca15c056f01ece2485199ef
\ No newline at end of file
diff --git a/server/web/nginx/actions.py b/server/web/nginx/actions.py
new file mode 100644
index 0000000000..203ea6283e
--- /dev/null
+++ b/server/web/nginx/actions.py
@@ -0,0 +1,82 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+#
+# Licensed under the GNU General Public License, version 3.
+# See the file http://www.gnu.org/licenses/gpl.txt
+
+from pisi.actionsapi import autotools
+from pisi.actionsapi import pisitools
+from pisi.actionsapi import shelltools
+from pisi.actionsapi import perlmodules
+from pisi.actionsapi import get
+
+NGINX_HOME = '/var/lib/nginx'
+NGINX_PID = '/run/nginx.pid'
+NGINX_LOCK = '/run/nginx.lock'
+NGINX_CONF = '/etc/nginx/nginx.conf'
+NGINX_HTML = '/var/www/nginx'
+
+LOG_DIR = '/var/log/nginx'
+ERROR_LOG = '%s/error.log' % LOG_DIR
+ACCESS_LOG = '%s/access.log' % LOG_DIR
+
+def setup():
+ autotools.rawConfigure("--user=nginx \
+ --group=nginx \
+ --prefix=%(html)s \
+ --sbin-path=/usr/sbin/nginx \
+ --conf-path=%(conf)s \
+ --pid-path=%(pid)s \
+ --lock-path=%(lock)s \
+ --error-log-path=%(error)s \
+ --http-log-path=%(access)s \
+ --http-client-body-temp-path=%(home)s/client_body \
+ --http-proxy-temp-path=%(home)s/proxy \
+ --http-fastcgi-temp-path=%(home)s/fastcgi \
+ --with-ipv6 \
+ --with-http_ssl_module \
+ --with-http_realip_module \
+ --with-http_addition_module \
+ --with-http_xslt_module \
+ --with-http_image_filter_module \
+ --with-http_geoip_module \
+ --with-http_sub_module \
+ --with-http_dav_module \
+ --with-http_flv_module \
+ --with-http_gzip_static_module \
+ --with-http_stub_status_module \
+ --with-http_perl_module \
+ --with-mail \
+ --with-mail_ssl_module" % {'html': NGINX_HTML, \
+ 'conf': NGINX_CONF, \
+ 'pid': NGINX_PID, \
+ 'lock': NGINX_LOCK, \
+ 'error': ERROR_LOG, \
+ 'access': ACCESS_LOG, \
+ 'home': NGINX_HOME})
+
+
+def build():
+ autotools.make()
+
+def install():
+ autotools.rawInstall("DESTDIR=%s" % get.installDIR())
+
+ # For 3rd-party configuration files
+ pisitools.dodir("/etc/nginx/conf.d")
+
+ # Remove empty dir
+ pisitools.removeDir("/usr/lib/perl5/%s" % get.curPERL())
+
+ # Add log dir and touch them :) Nginx needs pre-defined *.log files
+ pisitools.dodir(LOG_DIR)
+ shelltools.touch("%s%s" % (get.installDIR(), ERROR_LOG))
+ shelltools.touch("%s%s" % (get.installDIR(), ACCESS_LOG))
+
+ pisitools.dodir(NGINX_HOME + "/client_body")
+ pisitools.dodir(NGINX_HOME + "/fastcgi")
+ pisitools.dodir(NGINX_HOME + "/proxy")
+
+ pisitools.remove("/usr/lib/perl5/site_perl/*/*/*/*/.packlist")
+
+ pisitools.dodoc("README", "LICENSE")
diff --git a/server/web/nginx/comar/package.py b/server/web/nginx/comar/package.py
new file mode 100644
index 0000000000..cc84e629e0
--- /dev/null
+++ b/server/web/nginx/comar/package.py
@@ -0,0 +1,8 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+
+import os
+
+def postInstall(fromVersion, fromRelease, toVersion, toRelease):
+ os.system("/bin/chown -R nginx:nginx /var/lib/nginx")
+ os.system("/bin/chown -R nginx:nginx /var/log/nginx")
diff --git a/server/web/nginx/comar/service.py b/server/web/nginx/comar/service.py
new file mode 100644
index 0000000000..2b7a9c8726
--- /dev/null
+++ b/server/web/nginx/comar/service.py
@@ -0,0 +1,21 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+
+serviceType = "server"
+serviceDesc = _({"en": "Nginx Web Server",
+ "tr": "Nginx Web Sunucusu"})
+
+from comar.service import *
+
+@synchronized
+def start():
+ startService(command="/usr/sbin/nginx",
+ donotify=True)
+
+@synchronized
+def stop():
+ stopService(pidfile="/run/nginx.pid",
+ donotify=True)
+
+def status():
+ return isServiceRunning("/run/nginx.pid")
diff --git a/server/web/nginx/files/conf/00_default_vhost.conf b/server/web/nginx/files/conf/00_default_vhost.conf
new file mode 100644
index 0000000000..1c6ac2d8a7
--- /dev/null
+++ b/server/web/nginx/files/conf/00_default_vhost.conf
@@ -0,0 +1,76 @@
+################################################################
+#
+# Default Pisi Linux Nginx configuration.
+#
+# For more information, please visit the page below;
+#
+# * http://wiki.codemongers.com/Main
+#
+################################################################
+
+server {
+ listen 80;
+ server_name localhost;
+
+ location / {
+ root /var/www/nginx/htdocs;
+ index index.html index.htm;
+ }
+
+ # /home/user/public_html stuff
+ location ~ /~([a-zA-Z0-9]*)/(.*) {
+ root /home/;
+ autoindex on;
+ index index.html;
+ rewrite ^/~([a-zA-Z0-9]*)/(.*)$ /$1/public_html/$2 break;
+ }
+
+ error_page 404 /404.html;
+ location = /404.html {
+ root /var/www/nginx/htdocs;
+ }
+
+ # redirect server error pages to the static page /50x.html
+ #
+ error_page 500 502 503 504 /50x.html;
+ location = /50x.html {
+ root /var/www/nginx/htdocs;
+ }
+
+ # proxy the PHP scripts to Apache listening on 127.0.0.1:80
+ #
+ #location ~ \.php$ {
+ # proxy_pass http://127.0.0.1;
+ #}
+
+ # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
+ #
+ #location ~ \.php$ {
+ # root html;
+ # fastcgi_pass 127.0.0.1:9000;
+ # fastcgi_index index.php;
+ # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
+ # include fastcgi_params;
+ #}
+
+ # deny access to .htaccess files, if Apache's document root
+ # concurs with nginx's one
+ #
+ #location ~ /\.ht {
+ # deny all;
+ #}
+}
+
+
+# another virtual host using mix of IP-, name-, and port-based configuration
+#
+#server {
+# listen 8000;
+# listen somename:8080;
+# server_name somename alias another.alias;
+
+# location / {
+# root html;
+# index index.html index.htm;
+# }
+#}
diff --git a/server/web/nginx/files/conf/nginx.conf b/server/web/nginx/files/conf/nginx.conf
new file mode 100644
index 0000000000..2bd71f6c95
--- /dev/null
+++ b/server/web/nginx/files/conf/nginx.conf
@@ -0,0 +1,49 @@
+################################################################
+#
+# Default Pisi Linux Nginx configuration.
+#
+# For more information, please visit the page below;
+#
+# * http://wiki.codemongers.com/Main
+#
+################################################################
+
+user nginx;
+worker_processes 1;
+
+#error_log logs/error.log;
+#error_log logs/error.log notice;
+#error_log logs/error.log info;
+
+error_log /var/log/nginx/error.log;
+pid /run/nginx.pid;
+
+events {
+ worker_connections 1024;
+}
+
+
+http {
+ include /etc/nginx/mime.types;
+ default_type text/plain;
+
+ log_format main '$remote_addr - $remote_user [$time_local] $request '
+ '"$status" $body_bytes_sent "$http_referer" '
+ '"$http_user_agent" "$http_x_forwarded_for"';
+
+ access_log /var/log/nginx/access.log main;
+
+ sendfile on;
+ #tcp_nopush on;
+
+ #keepalive_timeout 0;
+ keepalive_timeout 65;
+
+ #gzip on;
+
+ # include 3rd-party configuration files
+ include /etc/nginx/conf.d/*.conf;
+
+ # include ssl configuration
+ include /etc/nginx/ssl.conf;
+}
diff --git a/server/web/nginx/files/conf/ssl.conf b/server/web/nginx/files/conf/ssl.conf
new file mode 100644
index 0000000000..e3df6d3843
--- /dev/null
+++ b/server/web/nginx/files/conf/ssl.conf
@@ -0,0 +1,27 @@
+#######################################################
+#
+# Sample SSL configuration
+#
+#######################################################
+
+# HTTPS server
+#
+#server {
+# listen 443;
+# server_name localhost;
+
+# ssl on;
+# ssl_certificate cert.pem;
+# ssl_certificate_key cert.key;
+
+# ssl_session_timeout 5m;
+
+# ssl_protocols SSLv2 SSLv3 TLSv1;
+# ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
+# ssl_prefer_server_ciphers on;
+
+# location / {
+# root html;
+# index index.html index.htm;
+# }
+#}
diff --git a/server/web/nginx/files/default-page/404.html b/server/web/nginx/files/default-page/404.html
new file mode 100644
index 0000000000..6119e0f21b
--- /dev/null
+++ b/server/web/nginx/files/default-page/404.html
@@ -0,0 +1,19 @@
+
+
+The page is not found
+
+
+
+
+
+
+
HTTP/404
+ The page you are looking for is not found!
+ Please check your URL.
+
+
+
+
+
diff --git a/server/web/nginx/files/default-page/index-tr.html b/server/web/nginx/files/default-page/index-tr.html
new file mode 100644
index 0000000000..4620c89cd9
--- /dev/null
+++ b/server/web/nginx/files/default-page/index-tr.html
@@ -0,0 +1,33 @@
+
+
+ Pisi Linux Nginx Web Sunucusu İçin Deneme Sayfası
+
+
+
+
+
+
+
+
+
+
+Pisi Linux Web Sunucusu Deneme Sayfası
+ Bu sayfanın hazırlandığı diğer diller: [İngilizce ]
+
+
+
+
+Bu sayfayı gördüğünüze göre Pisi Linux üzerine Nginx Web Sunucusu 'nu
+başarılı bir şekilde kurdunuz demektir. Bu sayfanın bulunduğu dizine
+kendi sayfalarınızı ekleyip hemen yayımlamaya başlayabilirsiniz.
+
+
+Pisi Linux, Nginx Web
+Sunucusu'nun güvenli bir şekilde çalışabileceği özgür bir Linux
+dağıtımıdır. Nginx Web Sunucusu'nu kullanırken aşağıdaki Nginx
+logosunu kullanabilirsiniz. Pisi Linux ve Nginx'i kullandığınız için
+teşekkür ederiz!
+
+
+
+
diff --git a/server/web/nginx/files/default-page/index.html b/server/web/nginx/files/default-page/index.html
new file mode 100644
index 0000000000..81834d0511
--- /dev/null
+++ b/server/web/nginx/files/default-page/index.html
@@ -0,0 +1,29 @@
+
+
+Pisi Linux Nginx Web Server Test Page
+
+
+
+
+
+Pisi Linux Web Server Test Page
+ See this page in
+[Turkish ]
+
+
+
+ You have successfully installed
+Nginx web server
+under Pisi Linux . Now it's possible to add HTML pages located in this directory.
+
+
+
+
+Pisi Linux, is a free to use, modify and distribute Linux distribution on which you can run Nginx web server in a secure manner.
+You can use the following Nginx logo while using Nginx web server in your web pages. Thanks for using Pisi Linux and Nginx!
+
+
+
+
+
+
diff --git a/server/web/nginx/files/default-page/nginx.css b/server/web/nginx/files/default-page/nginx.css
new file mode 100644
index 0000000000..d72e7ceef0
--- /dev/null
+++ b/server/web/nginx/files/default-page/nginx.css
@@ -0,0 +1,89 @@
+/* Generated by CaScadeS, a stylesheet editor for Mozilla Composer */
+
+ body {
+ width: 96%;
+ margin-right: 10px;
+ margin-left: 10px;
+ padding-right: 0pt;
+ padding-left: 0pt;
+ font-size: 0.8em ! important;
+ padding-top: 0pt ! important;
+ padding-bottom: 0pt ! important;
+ background-color: rgb(255, 255, 255);
+ color: rgb(0, 0, 0);
+ margin-bottom: 10px ! important;
+ margin-top: 10px ! important;
+ text-align: justify ! important;
+ font-family: "DejaVu Sans",sans-serif ! important;
+ }
+
+ h1 {
+ border: 0.5px solid rgb(204, 204, 204);
+ padding: 10px 10px 4px;
+ font-family: "DejaVu Sans",Arial,sans-serif;
+ font-weight: bold;
+ vertical-align: bottom;
+ color: rgb(27, 87, 177);
+ width: 96%;
+ font-size: 1.75em;
+ background-color: rgb(247, 247, 247);
+ text-align: center;
+ }
+
+ h2 {
+ padding: 0pt;
+ font-family: "DejaVu Sans",Arial,sans-serif;
+ font-size: 1.25em;
+ font-weight: bold;
+ vertical-align: bottom;
+ background-color: rgb(255, 255, 255);
+ color: rgb(27, 87, 177);
+ width: 95%;
+ text-align: left;
+ }
+
+ h3 { font-size: 1em;
+ background-color: rgb(48, 48, 48);
+ color: rgb(27, 87, 177);
+ text-align: center;
+ }
+
+ hr { border-style: none none solid;
+ border-color: rgb(204, 204, 204);
+ border-width: 0pt 0pt 1px;
+ text-align: center;
+ }
+
+ a:link {
+ background-color: rgb(255, 255, 255);
+ text-decoration:none;
+ color: rgb(96, 96, 80);
+ }
+
+ a:visited {
+ background-color: rgb(255, 255, 255);
+ text-decoration:none;
+ color: rgb(72, 70, 143);
+ }
+
+ a:hover {
+ background-color: rgb(255, 255, 255);
+ color: rgb(255, 34, 0);
+ }
+
+ .pardus-content { border: 1px solid rgb(240, 240, 240);
+ margin: 7px 7px;
+ padding: 24px;
+ min-width: 140px;
+ color: rgb(0, 0, 0);
+ background-color: rgb(252, 252, 252);
+ font-size: 0.8em;
+ }
+
+ div.box { border: 0.5px solid rgb(204, 204, 204);
+ margin: 0.5em ;
+ padding: 10px;
+ background-color: rgb(247, 247, 247);
+ color: rgb(0, 0, 0)
+ }
+
diff --git a/server/web/nginx/files/default-page/nginx.gif b/server/web/nginx/files/default-page/nginx.gif
new file mode 100644
index 0000000000..21bea95662
Binary files /dev/null and b/server/web/nginx/files/default-page/nginx.gif differ
diff --git a/server/web/nginx/files/default-page/pisi-linux.png b/server/web/nginx/files/default-page/pisi-linux.png
new file mode 100644
index 0000000000..8aacc57bac
Binary files /dev/null and b/server/web/nginx/files/default-page/pisi-linux.png differ
diff --git a/server/web/nginx/files/nginx.logrotate b/server/web/nginx/files/nginx.logrotate
new file mode 100644
index 0000000000..9554c6db0f
--- /dev/null
+++ b/server/web/nginx/files/nginx.logrotate
@@ -0,0 +1,11 @@
+/var/log/nginx/*log {
+ daily
+ rotate 10
+ missingok
+ notifempty
+ compress
+ sharedscripts
+ postrotate
+ [ ! -f /run/nginx.pid ] || kill -USR1 `cat /run/nginx.pid`
+ endscript
+}
diff --git a/server/web/nginx/pspec.xml b/server/web/nginx/pspec.xml
new file mode 100644
index 0000000000..a569b9bb91
--- /dev/null
+++ b/server/web/nginx/pspec.xml
@@ -0,0 +1,81 @@
+
+
+
+
+ nginx
+ http://www.nginx.net/
+
+ Kamil Atlı
+ suvari@pisilinux.org
+
+ as-is
+ service
+ nginx is an HTTP and reverse proxy server
+ Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Written by Igor Sysoev in 2005, Nginx now hosts between 1% and 4% of all domains worldwide. Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption.
+ http://nginx.org/download/nginx-1.17.2.tar.gz
+
+ perl
+ gd-devel
+ zlib-devel
+ geoip-devel
+ libxslt-devel
+ libpcre-devel
+ openssl-devel
+
+
+
+
+ nginx
+
+ gd
+ perl
+ zlib
+ geoip
+ libxslt
+ libpcre
+ openssl
+ libxml2
+
+
+ /etc/nginx
+ /etc/logrotate.d
+ /usr/sbin
+ /var/www/nginx
+ /var/log/nginx
+ /run
+ /var/lib/nginx/client_body
+ /var/lib/nginx/fastcgi
+ /var/lib/nginx/proxy
+ /usr/lib
+ /usr/share/man
+ /usr/share/doc
+
+
+ conf/nginx.conf
+ conf/ssl.conf
+ conf/00_default_vhost.conf
+ nginx.logrotate
+
+ default-page/index.html
+ default-page/index-tr.html
+ default-page/404.html
+ default-page/nginx.css
+ default-page/nginx.gif
+ default-page/pisi-linux.png
+
+
+ System.Package
+ System.Service
+
+
+
+
+
+ 2019-07-25
+ 1.17.2
+ First release
+ Kamil Atlı
+ suvari@pisilinux.org
+
+
+
\ No newline at end of file
diff --git a/server/web/nginx/translations.xml b/server/web/nginx/translations.xml
new file mode 100644
index 0000000000..dd951e0118
--- /dev/null
+++ b/server/web/nginx/translations.xml
@@ -0,0 +1,8 @@
+
+
+
+ nginx
+ Küçük, sağlam ve yüksek performanslı http ve ters vekil sunucusu
+ nginx, özgür, açık kaynaklı, yüksek performanslı bir HTTP, ters vekil (reverse proxy) ve aynı zamanda IMAP/POP3 sunucusudur.
+
+