diff options
| author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2026-04-18 21:55:32 +0000 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2026-05-13 13:12:02 +0000 |
| commit | 662ae05b748d0fe7adf5ae9a9e3e288201568094 (patch) | |
| tree | f3d0221cf794575f741af71f799c200f19b7710b | |
| parent | a96d5160df1b45f2355738cfbafa949170884ef3 (diff) | |
www/py-postorius: Add EXAMPLES option
- Bump PORTREVISION for package change
PR: 294555
Requested by: leres
(cherry picked from commit c0bfae42eae007d0b945a7cf8a9ae618e0248764)
| -rw-r--r-- | www/py-postorius/Makefile | 6 | ||||
| -rw-r--r-- | www/py-postorius/pkg-plist | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/www/py-postorius/Makefile b/www/py-postorius/Makefile index 2123a0e89ac8..0ed02550d6b6 100644 --- a/www/py-postorius/Makefile +++ b/www/py-postorius/Makefile @@ -1,5 +1,6 @@ PORTNAME= postorius PORTVERSION= 1.3.13 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -31,4 +32,9 @@ CPE_VENDOR= postorius_project SHEBANG_FILES= example_project/manage.py +OPTIONS_DEFINE= EXAMPLES + +post-install-EXAMPLES-on: + cd ${WRKSRC} && ${COPYTREE_SHARE} example_project ${STAGEDIR}${EXAMPLESDIR} + .include <bsd.port.mk> diff --git a/www/py-postorius/pkg-plist b/www/py-postorius/pkg-plist new file mode 100644 index 000000000000..78a9fd2f37ec --- /dev/null +++ b/www/py-postorius/pkg-plist @@ -0,0 +1,9 @@ +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/README.rst +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/__init__.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/logs/.keep +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/mailman.cfg +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/manage.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/settings.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/test_settings.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/urls.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/wsgi.py |
