aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ftp/py-pyftpdlib/Makefile4
-rw-r--r--ftp/py-pyftpdlib/pkg-plist10
2 files changed, 7 insertions, 7 deletions
diff --git a/ftp/py-pyftpdlib/Makefile b/ftp/py-pyftpdlib/Makefile
index bceda87cde08..59501fa75e1f 100644
--- a/ftp/py-pyftpdlib/Makefile
+++ b/ftp/py-pyftpdlib/Makefile
@@ -18,9 +18,7 @@ COMMENT= Python FTP server library
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-.if !defined(NOPORTDOCS)
DOCSDIR= ${TARGETDIR}/share/doc/py-${PORTNAME}
-.endif
EXAMPLESDIR= ${TARGETDIR}/share/examples/py-${PORTNAME}
post-install:
@@ -28,7 +26,9 @@ post-install:
@${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
.endif
+.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/demo/ ${EXAMPLESDIR}
+.endif
.include <bsd.port.mk>
diff --git a/ftp/py-pyftpdlib/pkg-plist b/ftp/py-pyftpdlib/pkg-plist
index bf7a0b48052b..16f1060f8d31 100644
--- a/ftp/py-pyftpdlib/pkg-plist
+++ b/ftp/py-pyftpdlib/pkg-plist
@@ -5,11 +5,11 @@
%%PYTHON_SITELIBDIR%%/pyftpdlib/__init__.pyc
%%PYTHON_SITELIBDIR%%/pyftpdlib/__init__.pyo
@dirrm %%PYTHON_SITELIBDIR%%/pyftpdlib
-%%EXAMPLESDIR%%/unix_ftpd.py
-%%EXAMPLESDIR%%/md5_ftpd.py
-%%EXAMPLESDIR%%/basic_ftpd.py
-%%EXAMPLESDIR%%/winNT_ftpd.py
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/unix_ftpd.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/md5_ftpd.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/basic_ftpd.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/winNT_ftpd.py
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%%%DOCSDIR%%/pyftpdlib.css
%%PORTDOCS%%%%DOCSDIR%%/pyftpdlib.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%