[crux-commits] ports/contrib (3.5): [notify] syslog-ng: new dependency: python3 and compile py bytecode in footprint; cleaned footprint

crux at crux.nu crux at crux.nu
Fri Jul 10 13:03:19 UTC 2020


commit 98dec7b879b8f0f4794b453eb13458ade0d43bb8
Author: Tim Biermann <tbier at posteo.de>
Date:   Fri Jul 10 12:56:39 2020 +0000

    [notify] syslog-ng: new dependency: python3 and compile py bytecode in footprint; cleaned footprint

diff --git a/syslog-ng/.footprint b/syslog-ng/.footprint
index 31e9fce75..45de59de2 100644
--- a/syslog-ng/.footprint
+++ b/syslog-ng/.footprint
@@ -393,27 +393,46 @@ drwxr-xr-x	root/root	usr/lib/syslog-ng/python/
 drwxr-xr-x	root/root	usr/lib/syslog-ng/python/syslogng/
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/__init__.py
 drwxr-xr-x	root/root	usr/lib/syslog-ng/python/syslogng/__pycache__/
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/__pycache__/__init__.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/__pycache__/__init__.cpython-37.pyc
 drwxr-xr-x	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__init__.py
 drwxr-xr-x	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/__init__.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/__init__.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/choicecompleter.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/choicecompleter.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/commandlinelexer.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/commandlinelexer.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/completer.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/completer.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/completerlang.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/completerlang.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/debuggercli.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/debuggercli.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/debuglang.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/debuglang.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/getoptlexer.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/getoptlexer.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/langcompleter.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/langcompleter.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/lexer.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/lexer.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/lexertoken.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/lexertoken.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/macrocompleter.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/macrocompleter.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/readline.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/readline.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/syslognginternals.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/syslognginternals.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/tablexer.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/tablexer.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/templatelang.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/templatelang.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/templatelexer.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/templatelexer.cpython-37.pyc
+-rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/tflang.cpython-37.opt-1.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/__pycache__/tflang.cpython-37.pyc
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/choicecompleter.py
 -rw-r--r--	root/root	usr/lib/syslog-ng/python/syslogng/debuggercli/commandlinelexer.py
@@ -455,7 +474,6 @@ drwxr-xr-x	root/root	usr/share/syslog-ng/include/scl/elasticsearch/
 drwxr-xr-x	root/root	usr/share/syslog-ng/include/scl/ewmm/
 -rw-r--r--	root/root	usr/share/syslog-ng/include/scl/ewmm/ewmm.conf
 drwxr-xr-x	root/root	usr/share/syslog-ng/include/scl/graphite/
--rw-r--r--	root/root	usr/share/syslog-ng/include/scl/graphite/README
 -rw-r--r--	root/root	usr/share/syslog-ng/include/scl/graphite/plugin.conf
 drwxr-xr-x	root/root	usr/share/syslog-ng/include/scl/graylog2/
 -rw-r--r--	root/root	usr/share/syslog-ng/include/scl/graylog2/plugin.conf
@@ -500,7 +518,6 @@ drwxr-xr-x	root/root	usr/share/syslog-ng/include/scl/sudo/
 drwxr-xr-x	root/root	usr/share/syslog-ng/include/scl/sumologic/
 -rw-r--r--	root/root	usr/share/syslog-ng/include/scl/sumologic/sumologic.conf
 drwxr-xr-x	root/root	usr/share/syslog-ng/include/scl/syslogconf/
--rw-r--r--	root/root	usr/share/syslog-ng/include/scl/syslogconf/README
 -rwxr-xr-x	root/root	usr/share/syslog-ng/include/scl/syslogconf/convert-syslogconf.awk
 -rw-r--r--	root/root	usr/share/syslog-ng/include/scl/syslogconf/plugin.conf
 drwxr-xr-x	root/root	usr/share/syslog-ng/include/scl/system/
diff --git a/syslog-ng/.signature b/syslog-ng/.signature
index 9545239c9..62f28508e 100644
--- a/syslog-ng/.signature
+++ b/syslog-ng/.signature
@@ -1,7 +1,7 @@
 untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF3+b+/8QeuLjeGR1hivaTYFigtmQVNPCDCZ7F4Tw7TyJVknkxEanhoeF4K4HqV5AyncKaHN9ldQGLvPqGCBQVyAw=
-SHA256 (Pkgfile) = b12453032d5efb2a050bcf23004d8267d61c0b0bdc47479a1a988a93e0c6ec87
-SHA256 (.footprint) = baa205eccb270e447b2bcf3cdddcf39657af0a6f70e986e91cf4ae28432ef6eb
+RWSagIOpLGJF32obkFXQp/kZ7Qp2JpnGaZpAXI2enJHDW8MFEhwiCfnBZM+rnynu+eor8fKenzJs85kbqSQVf4sSORbujYgljgA=
+SHA256 (Pkgfile) = 318234e388ed20b4638ca31d64518ea57b97d0c5d14e78b74b91368450fdbe5b
+SHA256 (.footprint) = 58676b60a107418c864406249015825034d80ce560586c2480e044a7aab1bc7e
 SHA256 (syslog-ng-3.28.1.tar.gz) = af4ef43c41e05759ce6f20f344563f1cbb00622399263fa0c6b9e96426c2a6e8
 SHA256 (syslog-ng.rc) = 4e9cabda9916c9cac1c8e511028636e40980ee29583983735d6a78fa6c7b23d9
 SHA256 (syslog-ng.conf) = 5633a8e7ebf37b3c1b7d10a9345a22bd479611afe5d7dc88076ec56048d4c115
diff --git a/syslog-ng/Pkgfile b/syslog-ng/Pkgfile
index 664fee4a5..e08185be1 100644
--- a/syslog-ng/Pkgfile
+++ b/syslog-ng/Pkgfile
@@ -1,7 +1,7 @@
 # Description: alternate syslogging daemon
 # URL:         http://www.balabit.com/network-security/syslog-ng/opensource-logging-system
 # Maintainer:  Thomas Penteker, tek at serverop dot de
-# Depends on:  glib json-c
+# Depends on:  glib json-c python3
 
 name=syslog-ng
 version=3.28.1
@@ -10,22 +10,31 @@ source=(https://github.com/$name/$name/releases/download/$name-$version/$name-$v
   syslog-ng.rc syslog-ng.conf)
 
 build() {
-   cd $name-$version
+  cd $name-$version
 
-   ./configure \
-      --prefix=/usr \
-      --sysconfdir=/etc \
-      --libexecdir=/var/lib/$name \
-      --localstatedir=/var/run \
-      --enable-dynamic-linking \
-      --sbindir=/sbin \
-      --disable-java \
-      --disable-java-modules
+  ./configure \
+     --prefix=/usr \
+     --sysconfdir=/etc \
+     --libexecdir=/var/lib/$name \
+     --localstatedir=/var/run \
+     --enable-dynamic-linking \
+     --sbindir=/sbin \
+     --disable-java \
+     --disable-java-modules
+  make
+  make DESTDIR=$PKG install
 
+  python3 -m compileall -d /usr/lib/syslog-ng/python/syslogng $PKG/lib/syslog-ng/python/syslogng
+  python3 -O -m compileall -d /usr/lib/syslog-ng/python/syslogng $PKG/usr/lib/syslog-ng/python/syslogng
 
-   make && make DESTDIR=$PKG install
-   rm -rf $PKG/usr/doc
-   rm -rf $PKG/usr/share/include/scl/syslogconf/README
-   install -D -m 644 ../syslog-ng.conf $PKG/etc/syslog-ng.conf
-   install -D -m 755 ../syslog-ng.rc $PKG/etc/rc.d/syslog-ng
+  install -D -m 644 ../syslog-ng.conf $PKG/etc/syslog-ng.conf
+  install -D -m 755 ../syslog-ng.rc $PKG/etc/rc.d/syslog-ng
+
+  rm -rf $PKG/usr/doc
+  find $PKG \(\
+    -iname '*changelog*' -o \
+    -iname '*news*' -o \
+    -iname '*todo*' -o \
+    -iname '*readme*' -o \
+    -iname '*copying*' \) -exec rm -fr '{}' \+
 }


More information about the crux-commits mailing list