git: af7d33c782d2 - main - sysutils/syslog-ng: Fix plist error when building with PYTHON option

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Tue, 03 Oct 2023 14:27:23 UTC
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=af7d33c782d2431191a1039c7cd3ba78d476efae

commit af7d33c782d2431191a1039c7cd3ba78d476efae
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-10-03 13:35:10 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-10-03 14:27:16 +0000

    sysutils/syslog-ng: Fix plist error when building with PYTHON option
    
    When building with python support:
    
    ---Begin OPTIONS List---
    ===> The following configuration options are available for syslog-ng-4.4.0:
    [...]
         PYTHON=on: Build with Python 3.9 support
    
    Some files are orphaned:
    
    ===> Checking for items in STAGEDIR missing from pkg-plist
    Error: Orphaned: lib/syslog-ng/python/syslogng/__pycache__/reloc%%PYTHON_EXT_SUFFIX%%.pyc
    Error: Orphaned: lib/syslog-ng/python/syslogng/reloc.py
    
    The initial patch was created by romain@ and the updated patch came from
    Peter Czanik, a syslog-ng developer.
    
    PR:             274187
    Submitted by:   Original patch by romain@
    Submitted by:   Peter Czanik (CzP) <peter.czanik@oneidentity.com>
                    Balabit (a OneIdentity company) / syslog-ng upstream
                    Updated patch
    MFH:            2023Q4
---
 sysutils/syslog-ng/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sysutils/syslog-ng/Makefile b/sysutils/syslog-ng/Makefile
index af6d0d193236..80cd1de562b3 100644
--- a/sysutils/syslog-ng/Makefile
+++ b/sysutils/syslog-ng/Makefile
@@ -171,6 +171,7 @@ PYTHON_PLIST_FILES=		lib/syslog-ng/libmod-python.so \
 		lib/syslog-ng/python/syslogng/__pycache__/persist%%PYTHON_EXT_SUFFIX%%.pyc \
 		lib/syslog-ng/python/syslogng/__pycache__/source%%PYTHON_EXT_SUFFIX%%.pyc \
 		lib/syslog-ng/python/syslogng/__pycache__/template%%PYTHON_EXT_SUFFIX%%.pyc \
+                lib/syslog-ng/python/syslogng/__pycache__/reloc%%PYTHON_EXT_SUFFIX%%.pyc \
 		lib/syslog-ng/python/syslogng/dest.py \
 		lib/syslog-ng/python/syslogng/logger.py \
 		lib/syslog-ng/python/syslogng/message.py \
@@ -178,6 +179,7 @@ PYTHON_PLIST_FILES=		lib/syslog-ng/libmod-python.so \
 		lib/syslog-ng/python/syslogng/persist.py \
 		lib/syslog-ng/python/syslogng/source.py \
 		lib/syslog-ng/python/syslogng/template.py \
+                lib/syslog-ng/python/syslogng/reloc.py \
 		lib/syslog-ng/python/syslogng/__init__.py \
 		lib/syslog-ng/python/syslogng/__pycache__/__init__.cpython-${PYTHON_SUFFIX}.pyc \
 		lib/syslog-ng/python/syslogng/debuggercli/__init__.py \
@@ -232,7 +234,6 @@ PYTHON_MOD_PLIST_FILES=		lib/syslog-ng/python/syslogng-1.0-py%%PYTHON_VER%%.egg-
 		lib/syslog-ng/python/syslogng/modules/hypr/__init__.py \
 		lib/syslog-ng/python/syslogng/modules/hypr/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc \
 		lib/syslog-ng/python/syslogng/modules/hypr/scl/hypr.conf \
-                lib/syslog-ng/python/syslogng/__pycache__/reloc%%PYTHON_EXT_SUFFIX%%.pyc \
                 lib/syslog-ng/python/syslogng/modules/s3/__init__.py \
                 lib/syslog-ng/python/syslogng/modules/s3/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc \
                 lib/syslog-ng/python/syslogng/modules/s3/__pycache__/compressable_file_buffer%%PYTHON_EXT_SUFFIX%%.pyc \
@@ -241,8 +242,7 @@ PYTHON_MOD_PLIST_FILES=		lib/syslog-ng/python/syslogng-1.0-py%%PYTHON_VER%%.egg-
                 lib/syslog-ng/python/syslogng/modules/s3/compressable_file_buffer.py \
                 lib/syslog-ng/python/syslogng/modules/s3/s3_destination.py \
                 lib/syslog-ng/python/syslogng/modules/s3/s3_object.py \
-                lib/syslog-ng/python/syslogng/modules/s3/scl/s3.conf \
-                lib/syslog-ng/python/syslogng/reloc.py
+                lib/syslog-ng/python/syslogng/modules/s3/scl/s3.conf
 
 
 CURL_CONFIGURE_OFF=		--with-libcurl=off