aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chinese/bg5pdf/Makefile2
-rw-r--r--chinese/bg5pdf/pkg-plist8
-rw-r--r--databases/py-psycopg/Makefile2
-rw-r--r--databases/py-psycopg/pkg-plist40
-rw-r--r--databases/sqlite2/Makefile2
-rw-r--r--databases/sqlite2/pkg-plist4
-rw-r--r--devel/cvs/Makefile6
-rw-r--r--devel/cvs/pkg-plist42
-rw-r--r--devel/elfio/pkg-plist14
-rw-r--r--devel/gazpacho/Makefile2
-rw-r--r--devel/gazpacho/pkg-plist10
-rw-r--r--dns/ez-ipupdate/Makefile2
-rw-r--r--dns/ez-ipupdate/pkg-plist22
-rw-r--r--graphics/cuttlefish/Makefile10
-rw-r--r--graphics/cuttlefish/pkg-plist12
-rw-r--r--lang/execline/Makefile4
-rw-r--r--lang/execline/pkg-plist6
-rw-r--r--mail/ask/Makefile2
-rw-r--r--mail/ask/pkg-plist26
-rw-r--r--mail/dspam-devel/Makefile2
-rw-r--r--mail/dspam-devel/pkg-plist34
-rw-r--r--mail/dspam/pkg-plist34
-rw-r--r--mail/libspf/Makefile2
-rw-r--r--mail/libspf/pkg-plist38
-rw-r--r--mail/pymsgauth/Makefile2
-rw-r--r--mail/pymsgauth/pkg-plist4
-rw-r--r--mail/qmail-notify/Makefile6
-rw-r--r--mail/qmail-notify/pkg-plist6
-rw-r--r--math/tvmet/pkg-plist46
-rw-r--r--net-p2p/rtorrent/Makefile8
-rw-r--r--net-p2p/rtorrent/pkg-plist4
-rw-r--r--net/java-beepcore/Makefile6
-rw-r--r--net/java-beepcore/pkg-plist22
-rw-r--r--net/spread-j/Makefile10
-rw-r--r--net/spread-j/pkg-plist10
-rw-r--r--net/wakeonlan/Makefile2
-rw-r--r--net/wakeonlan/pkg-plist4
-rw-r--r--security/libgnomesu/Makefile4
-rw-r--r--security/libgnomesu/pkg-plist4
-rw-r--r--security/snort-rep/Makefile2
-rw-r--r--security/snort-rep/pkg-plist4
-rw-r--r--sysutils/gosa/Makefile4
-rw-r--r--textproc/gastex/Makefile2
-rw-r--r--textproc/gastex/pkg-plist4
-rw-r--r--textproc/ppower4/Makefile2
-rw-r--r--textproc/ppower4/pkg-plist18
-rw-r--r--textproc/saxon/Makefile10
-rw-r--r--textproc/saxon/pkg-plist114
-rw-r--r--textproc/xt/Makefile10
-rw-r--r--textproc/xt/pkg-plist22
-rw-r--r--www/zen-cart/Makefile40
-rw-r--r--www/zen-cart/pkg-plist108
52 files changed, 406 insertions, 398 deletions
diff --git a/chinese/bg5pdf/Makefile b/chinese/bg5pdf/Makefile
index 156c59b4dbe9..36d5f723ae70 100644
--- a/chinese/bg5pdf/Makefile
+++ b/chinese/bg5pdf/Makefile
@@ -17,6 +17,8 @@ CFLAGS+= -fPIC
USE_PYTHON= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
+OPTIONS_DEFINE= EXAMPLES
+
post-patch:
${REINPLACE_CMD} -e 's,/usr/bin/python,python,g' ${WRKSRC}/bg5pdf
diff --git a/chinese/bg5pdf/pkg-plist b/chinese/bg5pdf/pkg-plist
index d89888f0f18d..556e91be8a47 100644
--- a/chinese/bg5pdf/pkg-plist
+++ b/chinese/bg5pdf/pkg-plist
@@ -1,7 +1,7 @@
bin/bg5pdf
bin/gbpdf
%%PYTHON_SITELIBDIR%%/bg5pdflib.so
-%%EXAMPLESDIR%%/genTest.py
-%%EXAMPLESDIR%%/test.big5
-%%EXAMPLESDIR%%/test.big5.pdf
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/genTest.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test.big5
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test.big5.pdf
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
diff --git a/databases/py-psycopg/Makefile b/databases/py-psycopg/Makefile
index a5cfa92a9655..9bc7cbf0b3aa 100644
--- a/databases/py-psycopg/Makefile
+++ b/databases/py-psycopg/Makefile
@@ -28,7 +28,7 @@ CONFIGURE_ARGS= --with-python=${PYTHON_CMD} \
--with-postgres-includes=${LOCALBASE}/include \
--with-mxdatetime-includes=${DATETIME_INC}
-OPTIONS_DEFINE= ZOPE DOCS
+OPTIONS_DEFINE= ZOPE DOCS EXAMPLES
OPTIONS_SUB= yes
ZOPE_USES= zope
diff --git a/databases/py-psycopg/pkg-plist b/databases/py-psycopg/pkg-plist
index 11b5f731749e..939565d29e38 100644
--- a/databases/py-psycopg/pkg-plist
+++ b/databases/py-psycopg/pkg-plist
@@ -10,26 +10,26 @@
%%PORTDOCS%%%%DOCSDIR%%/RELEASE-1.0
%%PORTDOCS%%%%DOCSDIR%%/SUCCESS
%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%%%EXAMPLESDIR%%/binary.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/bool.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/bounded.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/commit.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/copy_from.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/copy_from2.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/copy_to.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/dictfetch.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/dt.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/first.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/integrity.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/interval.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/notify.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/oid.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/somehackers.jpg
-%%PORTDOCS%%%%EXAMPLESDIR%%/threads.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/usercast.py
-%%PORTDOCS%%%%EXAMPLESDIR%%/whereareyou.jpg
-%%PORTDOCS%%%%EXAMPLESDIR%%/work.py
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/binary.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bool.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bounded.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/commit.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/copy_from.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/copy_from2.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/copy_to.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dictfetch.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dt.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/first.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/integrity.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/interval.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/notify.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/oid.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/somehackers.jpg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/threads.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/usercast.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/whereareyou.jpg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/work.py
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%ZOPE%%%%ZOPEPRODUCTDIR%%/ZPsycopgDA/DA.py
%%ZOPE%%%%ZOPEPRODUCTDIR%%/ZPsycopgDA/DA.pyc
diff --git a/databases/sqlite2/Makefile b/databases/sqlite2/Makefile
index 816948a3ba32..b4f20bcdd6d5 100644
--- a/databases/sqlite2/Makefile
+++ b/databases/sqlite2/Makefile
@@ -21,7 +21,7 @@ EXAMPLESDIR= ${PREFIX}/share/examples/sqlite2
EXTRACT_AFTER_ARGS= --exclude CVS
-OPTIONS_DEFINE= TCL THREADS DOCS
+OPTIONS_DEFINE= TCL THREADS DOCS EXAMPLES
.if !exists(/usr/lib/libreadline.so)
MAKE_ARGS= READLINE_FLAGS="-DHAVE_READLINE=1 -I${LOCALBASE}/include -L${LOCALBASE}/lib"
diff --git a/databases/sqlite2/pkg-plist b/databases/sqlite2/pkg-plist
index bc9b25f7264f..5fd9ba1adcf6 100644
--- a/databases/sqlite2/pkg-plist
+++ b/databases/sqlite2/pkg-plist
@@ -7,5 +7,5 @@ libdata/pkgconfig/sqlite.pc
%%WITH_TCLWRAPPER%%lib/sqlite/libtclsqlite.so
%%WITH_TCLWRAPPER%%lib/sqlite/pkgIndex.tcl
%%WITH_TCLWRAPPER%%@dirrm lib/sqlite
-%%EXAMPLESDIR%%/example.tcl
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.tcl
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
diff --git a/devel/cvs/Makefile b/devel/cvs/Makefile
index 12787abc1399..06c89bccbda4 100644
--- a/devel/cvs/Makefile
+++ b/devel/cvs/Makefile
@@ -11,8 +11,8 @@ COMMENT= Version control system
LICENSE= GPLv2
-OPTIONS_DEFINE= KERBEROS
-OPTIONS_DEFAULT= KERBEROS
+OPTIONS_DEFINE= KERBEROS EXAMPLES
+OPTIONS_DEFAULT=KERBEROS
USES= makeinfo tar:xz uidfix
WRKSRC= ${WRKDIR}/call/cvs-build
@@ -37,6 +37,6 @@ BROKEN= does not link
.endif
pre-install:
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/contrib
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/contrib
.include <bsd.port.post.mk>
diff --git a/devel/cvs/pkg-plist b/devel/cvs/pkg-plist
index edbf7c3d9586..5d0460d83ced 100644
--- a/devel/cvs/pkg-plist
+++ b/devel/cvs/pkg-plist
@@ -2,24 +2,24 @@ bin/cvs
bin/cvsbug
man/man1/cvs.1.gz
man/man8/cvsbug.8.gz
-%%EXAMPLESDIR%%/contrib/README
-%%EXAMPLESDIR%%/contrib/clmerge
-%%EXAMPLESDIR%%/contrib/cln_hist
-%%EXAMPLESDIR%%/contrib/commit_prep
-%%EXAMPLESDIR%%/contrib/cvs2vendor
-%%EXAMPLESDIR%%/contrib/cvs_acls
-%%EXAMPLESDIR%%/contrib/cvscheck
-%%EXAMPLESDIR%%/contrib/intro.doc
-%%EXAMPLESDIR%%/contrib/log
-%%EXAMPLESDIR%%/contrib/log_accum
-%%EXAMPLESDIR%%/contrib/mfpipe
-%%EXAMPLESDIR%%/contrib/rcs-to-cvs
-%%EXAMPLESDIR%%/contrib/rcslock
-%%EXAMPLESDIR%%/contrib/sccs2rcs
-%%EXAMPLESDIR%%/contrib/rcs2log
-%%EXAMPLESDIR%%/contrib/easy-import
-%%EXAMPLESDIR%%/contrib/cvscheck.man
-%%EXAMPLESDIR%%/contrib/cvshelp.man
-%%EXAMPLESDIR%%/contrib/descend.man
-@dirrm %%EXAMPLESDIR%%/contrib
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/README
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/clmerge
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/cln_hist
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/commit_prep
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/cvs2vendor
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/cvs_acls
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/cvscheck
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/intro.doc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/log
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/log_accum
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/mfpipe
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/rcs-to-cvs
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/rcslock
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/sccs2rcs
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/rcs2log
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/easy-import
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/cvscheck.man
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/cvshelp.man
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contrib/descend.man
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/contrib
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
diff --git a/devel/elfio/pkg-plist b/devel/elfio/pkg-plist
index 89dcb82199c1..2d022ecd61fe 100644
--- a/devel/elfio/pkg-plist
+++ b/devel/elfio/pkg-plist
@@ -7,10 +7,10 @@ lib/libELFIO.a
lib/libELFIO.la
lib/libELFIO.so
lib/libELFIO.so.0
-%%EXAMPLES%%%%EXAMPLESDIR%%/ELFDump.cpp
-%%EXAMPLES%%%%EXAMPLESDIR%%/RelocationTable.cpp
-%%EXAMPLES%%%%EXAMPLESDIR%%/Write.cpp
-%%EXAMPLES%%%%EXAMPLESDIR%%/WriteObj.cpp
-%%EXAMPLES%%%%EXAMPLESDIR%%/WriteObj2.cpp
-%%EXAMPLES%%%%EXAMPLESDIR%%/tutorial.cpp
-%%EXAMPLES%%@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ELFDump.cpp
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/RelocationTable.cpp
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Write.cpp
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/WriteObj.cpp
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/WriteObj2.cpp
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tutorial.cpp
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
diff --git a/devel/gazpacho/Makefile b/devel/gazpacho/Makefile
index 256cc64c8b29..106d4d080944 100644
--- a/devel/gazpacho/Makefile
+++ b/devel/gazpacho/Makefile
@@ -21,7 +21,7 @@ USE_PYDISTUTILS=yes
USES= gettext
DOCS= AUTHORS ChangeLog CONTRIBUTORS COPYING README NEWS
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|share/doc/gazpacho/examples|${EXAMPLESDIR}|g' ${WRKSRC}/setup.py
diff --git a/devel/gazpacho/pkg-plist b/devel/gazpacho/pkg-plist
index 2387a689ad20..7d34c26241c4 100644
--- a/devel/gazpacho/pkg-plist
+++ b/devel/gazpacho/pkg-plist
@@ -246,10 +246,10 @@ share/applications/gazpacho.desktop
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
-%%EXAMPLESDIR%%/helloworld.glade
-%%EXAMPLESDIR%%/helloworld.py
-%%EXAMPLESDIR%%/uimanager.glade
-%%EXAMPLESDIR%%/uimanager.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/helloworld.glade
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/helloworld.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/uimanager.glade
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/uimanager.py
%%DATADIR%%/catalogs/base.xml
%%DATADIR%%/glade/dummy.glade
%%DATADIR%%/glade/preferences.glade
@@ -344,7 +344,7 @@ share/locale/zh_CN/LC_MESSAGES/gazpacho.mo
@dirrm %%DATADIR%%/glade
@dirrmtry %%DATADIR%%/catalogs
@dirrmtry %%DATADIR%%
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrm %%PYTHON_SITELIBDIR%%/gazpacho/widgets/base/menueditor
@dirrm %%PYTHON_SITELIBDIR%%/gazpacho/widgets/base
@dirrmtry %%PYTHON_SITELIBDIR%%/gazpacho/widgets
diff --git a/dns/ez-ipupdate/Makefile b/dns/ez-ipupdate/Makefile
index 51392cc9150d..37b5c5bc82ff 100644
--- a/dns/ez-ipupdate/Makefile
+++ b/dns/ez-ipupdate/Makefile
@@ -15,6 +15,8 @@ COMMENT= Update your host name on any dynamic DNS service
USE_RC_SUBR= ez-ipupdate
GNU_CONFIGURE= yes
+OPTIONS_DEFINE= EXAMPLES
+
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} example-*.conf ${STAGEDIR}${EXAMPLESDIR})
diff --git a/dns/ez-ipupdate/pkg-plist b/dns/ez-ipupdate/pkg-plist
index 128e34c24a8a..825c4d728672 100644
--- a/dns/ez-ipupdate/pkg-plist
+++ b/dns/ez-ipupdate/pkg-plist
@@ -1,13 +1,13 @@
bin/ez-ipupdate
etc/ez-ipupdate.conf.sample
-%%EXAMPLESDIR%%/example-dhs.conf
-%%EXAMPLESDIR%%/example-dyndns.conf
-%%EXAMPLESDIR%%/example-dyns.conf
-%%EXAMPLESDIR%%/example-easydns.conf
-%%EXAMPLESDIR%%/example-gnudip.conf
-%%EXAMPLESDIR%%/example-heipv6tb.conf
-%%EXAMPLESDIR%%/example-justlinux.conf
-%%EXAMPLESDIR%%/example-ods.conf
-%%EXAMPLESDIR%%/example-pgpow.conf
-%%EXAMPLESDIR%%/example-tzo.conf
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-dhs.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-dyndns.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-dyns.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-easydns.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-gnudip.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-heipv6tb.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-justlinux.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-ods.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-pgpow.conf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-tzo.conf
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
diff --git a/graphics/cuttlefish/Makefile b/graphics/cuttlefish/Makefile
index 21c3a5956de2..169ed06908c9 100644
--- a/graphics/cuttlefish/Makefile
+++ b/graphics/cuttlefish/Makefile
@@ -27,6 +27,8 @@ EXAMPLES= japan-traces-small.config japan-traces.config \
nyxem-hosts-both.config \
witty-combined-small.config witty-combined.config
+OPTIONS_DEFINE= EXAMPLES
+
post-patch:
@${REINPLACE_CMD} -e "s|../lib|../lib/cuttlefish|" \
${WRKSRC}/bin/cuttlefish.pl
@@ -36,18 +38,18 @@ post-patch:
.endfor
do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/bin/cuttlefish.pl ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/cuttlefish.pl ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/cuttlefish
@${MKDIR} ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in Canvas.pm Control.pm Histogram.pm Image.pm Legend.pm Map.pm Util.pm
- @${INSTALL_DATA} ${WRKSRC}/lib/${f} ${STAGEDIR}${PREFIX}/lib/cuttlefish/${f}
+ ${INSTALL_DATA} ${WRKSRC}/lib/${f} ${STAGEDIR}${PREFIX}/lib/cuttlefish/${f}
.endfor
.for f in ${EXAMPLES}
- @${INSTALL_DATA} ${WRKSRC}/configs/${f} ${STAGEDIR}${EXAMPLESDIR}/${f}
+ ${INSTALL_DATA} ${WRKSRC}/configs/${f} ${STAGEDIR}${EXAMPLESDIR}/${f}
.endfor
.for f in ${IMAGES}
- @${INSTALL_DATA} ${WRKSRC}/images/${f} ${STAGEDIR}${DATADIR}/${f}
+ ${INSTALL_DATA} ${WRKSRC}/images/${f} ${STAGEDIR}${DATADIR}/${f}
.endfor
.include <bsd.port.mk>
diff --git a/graphics/cuttlefish/pkg-plist b/graphics/cuttlefish/pkg-plist
index 3718ddc28933..205eb1c6720c 100644
--- a/graphics/cuttlefish/pkg-plist
+++ b/graphics/cuttlefish/pkg-plist
@@ -12,11 +12,11 @@ lib/cuttlefish/Util.pm
%%DATADIR%%/japan-water.jpg
%%DATADIR%%/world-day.jpg
%%DATADIR%%/world-water.jpg
-%%EXAMPLESDIR%%/japan-traces-small.config
-%%EXAMPLESDIR%%/japan-traces.config
-%%EXAMPLESDIR%%/nyxem-hosts-both.config
-%%EXAMPLESDIR%%/witty-combined-small.config
-%%EXAMPLESDIR%%/witty-combined.config
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/japan-traces-small.config
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/japan-traces.config
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nyxem-hosts-both.config
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/witty-combined-small.config
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/witty-combined.config
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrm %%DATADIR%%
@dirrm lib/cuttlefish
diff --git a/lang/execline/Makefile b/lang/execline/Makefile
index 3c4a40cd1e4f..e5f88f48371b 100644
--- a/lang/execline/Makefile
+++ b/lang/execline/Makefile
@@ -16,7 +16,7 @@ WRKSRC= ${WRKDIR}/admin/${DISTNAME}
DOCS= package/CHANGES package/README package/THANKS package/TODO \
doc/*.html
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS EXAMPLES
do-configure:
${ECHO_CMD} "FreeBSD" > ${WRKSRC}/src/sys/systype
@@ -31,7 +31,7 @@ do-configure:
${WRKSRC}/conf-compile/conf-ld
do-build:
- cd ${WRKSRC} && package/compile
+ (cd ${WRKSRC} && package/compile)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/command/* ${STAGEDIR}${PREFIX}/bin
diff --git a/lang/execline/pkg-plist b/lang/execline/pkg-plist
index 7e8b11ee5e7c..c7003238e301 100644
--- a/lang/execline/pkg-plist
+++ b/lang/execline/pkg-plist
@@ -98,7 +98,7 @@ lib/libexls1.a
%%PORTDOCS%%%%DOCSDIR%%/upgrade.html
%%PORTDOCS%%%%DOCSDIR%%/wait.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%EXAMPLESDIR%%/execline-shell
-%%EXAMPLESDIR%%/execline-startup
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/execline-shell
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/execline-startup
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrm include/execline
diff --git a/mail/ask/Makefile b/mail/ask/Makefile
index 2e28d109e9a3..2907dc41d134 100644
--- a/mail/ask/Makefile
+++ b/mail/ask/Makefile
@@ -17,7 +17,7 @@ BINS= askfilter asksetup utils/asksenders
SUB_FILES= pkg-message
PORTDOCS= *
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS EXAMPLES
post-extract:
@${REINPLACE_CMD} -E \
diff --git a/mail/ask/pkg-plist b/mail/ask/pkg-plist
index d6a19272ce5a..96bdc58a46f9 100644
--- a/mail/ask/pkg-plist
+++ b/mail/ask/pkg-plist
@@ -13,17 +13,17 @@ lib/ask/test.py
man/man1/askfilter.1.gz
man/man1/asksenders.1.gz
man/man1/asksetup.1.gz
-%%EXAMPLESDIR%%/ask.rc
-%%EXAMPLESDIR%%/confirm_da.txt
-%%EXAMPLESDIR%%/confirm_de.txt
-%%EXAMPLESDIR%%/confirm_en.txt
-%%EXAMPLESDIR%%/confirm_es.txt
-%%EXAMPLESDIR%%/confirm_fi.txt
-%%EXAMPLESDIR%%/confirm_fr.txt
-%%EXAMPLESDIR%%/confirm_it.txt
-%%EXAMPLESDIR%%/confirm_nl.txt
-%%EXAMPLESDIR%%/confirm_ptbr.txt
-%%EXAMPLESDIR%%/ignorelist.txt
-%%EXAMPLESDIR%%/whitelist.txt
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ask.rc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/confirm_da.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/confirm_de.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/confirm_en.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/confirm_es.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/confirm_fi.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/confirm_fr.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/confirm_it.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/confirm_nl.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/confirm_ptbr.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ignorelist.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/whitelist.txt
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrm lib/ask
diff --git a/mail/dspam-devel/Makefile b/mail/dspam-devel/Makefile
index 9ecfddd96c9f..c2f9393c98ac 100644
--- a/mail/dspam-devel/Makefile
+++ b/mail/dspam-devel/Makefile
@@ -40,7 +40,7 @@ OPTIONS_DEFINE= SYSLOG DEBUG VERBOSE_DEBUG BNR_DEBUG PREF_EXT DAEMON \
MYSQL_LOCAL PGSQL_LOCAL HASH EXTERNAL_LOOKUP \
USER_HOMEDIR TRUSTED_USERS VIRT_USERS LONG_USERNAMES \
LARGE_SCALE DOMAIN_SCALE NICESENDMAIL POSTFIX_MBC \
- QMAIL WEBUI LIGHTTPD DOCS
+ QMAIL WEBUI LIGHTTPD DOCS EXAMPLES
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL51 MYSQL55 PGSQL SQLITE2 SQLITE3
diff --git a/mail/dspam-devel/pkg-plist b/mail/dspam-devel/pkg-plist
index ba71190e81d7..3501922c0b34 100644
--- a/mail/dspam-devel/pkg-plist
+++ b/mail/dspam-devel/pkg-plist
@@ -106,23 +106,23 @@ libdata/pkgconfig/dspam.pc
%%PORTDOCS%%%%DOCSDIR%%/UPDATING
%%PORTDOCS%%%%DOCSDIR%%/UPGRADING
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-4.1.sql
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-space.sql
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-speed.sql
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/purge-4.1.sql
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/purge.sql
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/virtual_user_aliases.sql
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/virtual_users.sql
-%%MYSQL%%@dirrm %%EXAMPLESDIR%%/mysql
-%%PGSQL%%%%EXAMPLESDIR%%/pgsql/pgsql_objects.sql
-%%PGSQL%%%%EXAMPLESDIR%%/pgsql/purge.sql
-%%PGSQL%%%%EXAMPLESDIR%%/pgsql/purge-pe.sql
-%%PGSQL%%%%EXAMPLESDIR%%/pgsql/virtual_users.sql
-%%PGSQL%%@dirrm %%EXAMPLESDIR%%/pgsql
-%%SQLITE%%%%EXAMPLESDIR%%/sqlite/purge-2.sql
-%%SQLITE%%%%EXAMPLESDIR%%/sqlite/purge-3.sql
-%%SQLITE%%@dirrm %%EXAMPLESDIR%%/sqlite
-@dirrmtry %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-4.1.sql
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-space.sql
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-speed.sql
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/purge-4.1.sql
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/purge.sql
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/virtual_user_aliases.sql
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/virtual_users.sql
+%%PORTEXAMPLES%%%%MYSQL%%@dirrm %%EXAMPLESDIR%%/mysql
+%%PORTEXAMPLES%%%%PGSQL%%%%EXAMPLESDIR%%/pgsql/pgsql_objects.sql
+%%PORTEXAMPLES%%%%PGSQL%%%%EXAMPLESDIR%%/pgsql/purge.sql
+%%PORTEXAMPLES%%%%PGSQL%%%%EXAMPLESDIR%%/pgsql/purge-pe.sql
+%%PORTEXAMPLES%%%%PGSQL%%%%EXAMPLESDIR%%/pgsql/virtual_users.sql
+%%PORTEXAMPLES%%%%PGSQL%%@dirrm %%EXAMPLESDIR%%/pgsql
+%%PORTEXAMPLES%%%%SQLITE%%%%EXAMPLESDIR%%/sqlite/purge-2.sql
+%%PORTEXAMPLES%%%%SQLITE%%%%EXAMPLESDIR%%/sqlite/purge-3.sql
+%%PORTEXAMPLES%%%%SQLITE%%@dirrm %%EXAMPLESDIR%%/sqlite
+%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
%%WebUI%%%%WWWDIR%%/admins.sample
%%WebUI%%%%WWWDIR%%/admin.cgi
%%WebUI%%%%WWWDIR%%/admingraph.cgi
diff --git a/mail/dspam/pkg-plist b/mail/dspam/pkg-plist
index bb125584e8e8..2b9feecb5a26 100644
--- a/mail/dspam/pkg-plist
+++ b/mail/dspam/pkg-plist
@@ -92,23 +92,23 @@ libdata/pkgconfig/dspam.pc
%%PORTDOCS%%%%DOCSDIR%%/UPDATING
%%PORTDOCS%%%%DOCSDIR%%/UPGRADING
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-4.1.sql
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-space.sql
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-speed.sql
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/purge-4.1.sql
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/purge.sql
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/virtual_user_aliases.sql
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/virtual_users.sql
-%%MYSQL%%@dirrm %%EXAMPLESDIR%%/mysql
-%%PGSQL%%%%EXAMPLESDIR%%/pgsql/pgsql_objects.sql
-%%PGSQL%%%%EXAMPLESDIR%%/pgsql/purge.sql
-%%PGSQL%%%%EXAMPLESDIR%%/pgsql/purge-pe.sql
-%%PGSQL%%%%EXAMPLESDIR%%/pgsql/virtual_users.sql
-%%PGSQL%%@dirrm %%EXAMPLESDIR%%/pgsql
-%%SQLITE%%%%EXAMPLESDIR%%/sqlite/purge-2.sql
-%%SQLITE%%%%EXAMPLESDIR%%/sqlite/purge-3.sql
-%%SQLITE%%@dirrm %%EXAMPLESDIR%%/sqlite
-@dirrmtry %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-4.1.sql
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-space.sql
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-speed.sql
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/purge-4.1.sql
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/purge.sql
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/virtual_user_aliases.sql
+%%PORTEXAMPLES%%%%MYSQL%%%%EXAMPLESDIR%%/mysql/virtual_users.sql
+%%PORTEXAMPLES%%%%MYSQL%%@dirrm %%EXAMPLESDIR%%/mysql
+%%PORTEXAMPLES%%%%PGSQL%%%%EXAMPLESDIR%%/pgsql/pgsql_objects.sql
+%%PORTEXAMPLES%%%%PGSQL%%%%EXAMPLESDIR%%/pgsql/purge.sql
+%%PORTEXAMPLES%%%%PGSQL%%%%EXAMPLESDIR%%/pgsql/purge-pe.sql
+%%PORTEXAMPLES%%%%PGSQL%%%%EXAMPLESDIR%%/pgsql/virtual_users.sql
+%%PORTEXAMPLES%%%%PGSQL%%@dirrm %%EXAMPLESDIR%%/pgsql
+%%PORTEXAMPLES%%%%SQLITE%%%%EXAMPLESDIR%%/sqlite/purge-2.sql
+%%PORTEXAMPLES%%%%SQLITE%%%%EXAMPLESDIR%%/sqlite/purge-3.sql
+%%PORTEXAMPLES%%%%SQLITE%%@dirrm %%EXAMPLESDIR%%/sqlite
+%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
%%WebUI%%%%WWWDIR%%/admins.sample
%%WebUI%%%%WWWDIR%%/admin.cgi
%%WebUI%%%%WWWDIR%%/admingraph.cgi
diff --git a/mail/libspf/Makefile b/mail/libspf/Makefile
index 32d021c52526..679deb87ff8f 100644
--- a/mail/libspf/Makefile
+++ b/mail/libspf/Makefile
@@ -21,7 +21,7 @@ USE_LDCONFIG= yes
PORTDOCS= *
-OPTIONS_DEFINE= RFC_RECURSION LOGFILE_STATS DEBUG DOCS
+OPTIONS_DEFINE= RFC_RECURSION LOGFILE_STATS DEBUG DOCS EXAMPLES
RFC_RECURSION_DESC= Change SPF recursion to 20 (as per RFC)
LOGFILE_STATS_DESC= Enables logfile stats
diff --git a/mail/libspf/pkg-plist b/mail/libspf/pkg-plist
index a9cd2e8ce100..4c0e6d833279 100644
--- a/mail/libspf/pkg-plist
+++ b/mail/libspf/pkg-plist
@@ -7,20 +7,20 @@ lib/libspf-1.0.so
lib/libspf-1.0.so.0
lib/libspf.a
lib/libspf.la
-%%EXAMPLESDIR%%/examples/Sendmail/sendmail.cf
-%%EXAMPLESDIR%%/examples/Sendmail/sendmail.mc.example
-%%EXAMPLESDIR%%/examples/Sendmail/spf.m4
-%%EXAMPLESDIR%%/examples/qmail/control/spfaction
-%%EXAMPLESDIR%%/examples/qmail/control/spfbestguess
-%%EXAMPLESDIR%%/examples/qmail/control/spfdebugstate
-%%EXAMPLESDIR%%/examples/qmail/control/spfexplainstate
-%%EXAMPLESDIR%%/examples/qmail/control/spfexplanation
-%%EXAMPLESDIR%%/examples/qmail/control/spfguessstate
-%%EXAMPLESDIR%%/examples/qmail/control/spfheaderstate
-%%EXAMPLESDIR%%/examples/qmail/control/spftarpit
-%%EXAMPLESDIR%%/examples/qmail/control/spftarpittime
-%%EXAMPLESDIR%%/examples/qmail/control/spftrustedforwarder
-%%EXAMPLESDIR%%/examples/qmail/control/spftrustedstate
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/Sendmail/sendmail.cf
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/Sendmail/sendmail.mc.example
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/Sendmail/spf.m4
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/qmail/control/spfaction
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/qmail/control/spfbestguess
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/qmail/control/spfdebugstate
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/qmail/control/spfexplainstate
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/qmail/control/spfexplanation
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/qmail/control/spfguessstate
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/qmail/control/spfheaderstate
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/qmail/control/spftarpit
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/qmail/control/spftarpittime
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/qmail/control/spftrustedforwarder
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples/qmail/control/spftrustedstate
%%DATADIR%%/patches/Courier-MTA/courier-0.45.4-spf.diff
%%DATADIR%%/patches/Postfix/2.1.x/postfix-2.1.4-libspf-1.0-RC6.diff
%%DATADIR%%/patches/Postfix/README
@@ -51,8 +51,8 @@ lib/libspf.la
@dirrm %%DATADIR%%/patches/Courier-MTA
@dirrm %%DATADIR%%/patches
@dirrm %%DATADIR%%
-@dirrm %%EXAMPLESDIR%%/examples/qmail/control
-@dirrm %%EXAMPLESDIR%%/examples/qmail
-@dirrm %%EXAMPLESDIR%%/examples/Sendmail
-@dirrm %%EXAMPLESDIR%%/examples
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/examples/qmail/control
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/examples/qmail
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/examples/Sendmail
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/examples
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
diff --git a/mail/pymsgauth/Makefile b/mail/pymsgauth/Makefile
index 7109f1205ad9..f4a04f589815 100644
--- a/mail/pymsgauth/Makefile
+++ b/mail/pymsgauth/Makefile
@@ -20,7 +20,7 @@ SUB_FILES= pkg-message
DOCS= BUGS CHANGELOG pymsgauth.txt pymsgauth.html
EXAMPLES= pymsgauthrc-example
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS EXAMPLES
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
diff --git a/mail/pymsgauth/pkg-plist b/mail/pymsgauth/pkg-plist
index d89b10709098..03c52937e725 100644
--- a/mail/pymsgauth/pkg-plist
+++ b/mail/pymsgauth/pkg-plist
@@ -11,6 +11,6 @@ bin/pymsgauth-mail
%%PORTDOCS%%%%DOCSDIR%%/pymsgauth.html
%%PORTDOCS%%%%DOCSDIR%%/pymsgauth.txt
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%EXAMPLESDIR%%/pymsgauthrc-example
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pymsgauthrc-example
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrm %%DATADIR%%
diff --git a/mail/qmail-notify/Makefile b/mail/qmail-notify/Makefile
index 6c51f091d54a..6d6b1740d826 100644
--- a/mail/qmail-notify/Makefile
+++ b/mail/qmail-notify/Makefile
@@ -23,10 +23,10 @@ do-configure:
${ECHO_CMD} "${CC} ${STRIP} ${LDFLAGS}" > ${WRKSRC}/conf-ld
do-install:
- cd ${WRKSRC} && ./installer
+ (cd ${WRKSRC} && ./installer)
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR})
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
diff --git a/mail/qmail-notify/pkg-plist b/mail/qmail-notify/pkg-plist
index 53a196634694..09684fe9b343 100644
--- a/mail/qmail-notify/pkg-plist
+++ b/mail/qmail-notify/pkg-plist
@@ -1,7 +1,7 @@
bin/qmail-notify
-%%EXAMPLESDIR%%/cron.hourly
-%%EXAMPLESDIR%%/message.txt
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cron.hourly
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/message.txt
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO
diff --git a/math/tvmet/pkg-plist b/math/tvmet/pkg-plist
index 2080e229a4e2..c94ed21d9eb4 100644
--- a/math/tvmet/pkg-plist
+++ b/math/tvmet/pkg-plist
@@ -100,29 +100,29 @@ share/aclocal/tvmet.m4
%%PORTDOCS%%%%DOCSDIR%%/tvmet.css
%%PORTDOCS%%%%DOCSDIR%%/usage.dox
%%PORTDOCS%%%%DOCSDIR%%/works.dox
-%%PORTDOCS%%%%EXAMPLESDIR%%/alias.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/aliasing.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/cmm.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/cmv.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/diag.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/frob_matrix_norm.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/hspiess.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/matrix_col.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/mm.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/mv.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/ray.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/redwards.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/xpr_print_m1.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/xpr_print_m2.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/xpr_print_m3.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/xpr_print_m4.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/xpr_print_mv1.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/xpr_print_mv2.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/xpr_print_v1.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/xpr_print_v2.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/xpr_print_v3.cc
-%%PORTDOCS%%%%EXAMPLESDIR%%/xpr_print_v4.cc
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alias.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/aliasing.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cmm.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cmv.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/diag.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/frob_matrix_norm.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hspiess.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/matrix_col.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mm.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mv.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ray.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/redwards.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xpr_print_m1.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xpr_print_m2.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xpr_print_m3.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xpr_print_m4.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xpr_print_mv1.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xpr_print_mv2.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xpr_print_v1.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xpr_print_v2.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xpr_print_v3.cc
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/xpr_print_v4.cc
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm include/tvmet/xpr
@dirrm include/tvmet/util
diff --git a/net-p2p/rtorrent/Makefile b/net-p2p/rtorrent/Makefile
index cf4d35e705d0..0e680327b103 100644
--- a/net-p2p/rtorrent/Makefile
+++ b/net-p2p/rtorrent/Makefile
@@ -22,8 +22,8 @@ SUB_FILES= pkg-message
PORTDOCS= README
-OPTIONS_DEFINE= XMLRPC IPV6 DOCS
-OPTIONS_DEFAULT= XMLRPC
+OPTIONS_DEFINE= XMLRPC IPV6 DOCS EXAMPLES
+OPTIONS_DEFAULT=XMLRPC
XMLRPC_DESC= Compile with xmlrpc-c support
.include <bsd.port.options.mk>
@@ -60,9 +60,9 @@ post-patch:
.endif
post-install:
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/rtorrent.rc ${STAGEDIR}${EXAMPLESDIR}
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/net-p2p/rtorrent/pkg-plist b/net-p2p/rtorrent/pkg-plist
index f1b481743355..84240a93e464 100644
--- a/net-p2p/rtorrent/pkg-plist
+++ b/net-p2p/rtorrent/pkg-plist
@@ -1,3 +1,3 @@
bin/rtorrent
-%%EXAMPLESDIR%%/rtorrent.rc
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rtorrent.rc
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
diff --git a/net/java-beepcore/Makefile b/net/java-beepcore/Makefile
index e1b7c907b5fc..ad5005478531 100644
--- a/net/java-beepcore/Makefile
+++ b/net/java-beepcore/Makefile
@@ -18,13 +18,13 @@ USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS EXAMPLES
do-install:
${INSTALL_DATA} ${WRKSRC}/lib/beep*.jar ${STAGEDIR}${JAVAJARDIR}
- cd ${WRKSRC}/example \
+ (cd ${WRKSRC}/example \
&& ${FIND} -s . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/{} \; \
- && ${FIND} -s . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} \;
+ && ${FIND} -s . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} \;)
${INSTALL_DATA} ${WRKSRC}/lib/example.jar ${STAGEDIR}${EXAMPLESDIR}
post-install:
diff --git a/net/java-beepcore/pkg-plist b/net/java-beepcore/pkg-plist
index ffa518c21710..8c0d16749dca 100644
--- a/net/java-beepcore/pkg-plist
+++ b/net/java-beepcore/pkg-plist
@@ -6,15 +6,15 @@
%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
%%PORTDOCS%%%%DOCSDIR%%/README.txt
%%PORTDOCS%%%%DOCSDIR%%/README_SASL.htm
-%%EXAMPLESDIR%%/example.jar
-%%EXAMPLESDIR%%/org/beepcore/beep/example/Beepd.java
-%%EXAMPLESDIR%%/org/beepcore/beep/example/Bing.java
-%%EXAMPLESDIR%%/org/beepcore/beep/example/README_EXAMPLE
-%%EXAMPLESDIR%%/org/beepcore/beep/example/beepd-config.xml
-@dirrm %%EXAMPLESDIR%%/org/beepcore/beep/util
-@dirrm %%EXAMPLESDIR%%/org/beepcore/beep/example
-@dirrm %%EXAMPLESDIR%%/org/beepcore/beep
-@dirrm %%EXAMPLESDIR%%/org/beepcore
-@dirrm %%EXAMPLESDIR%%/org
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.jar
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/org/beepcore/beep/example/Beepd.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/org/beepcore/beep/example/Bing.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/org/beepcore/beep/example/README_EXAMPLE
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/org/beepcore/beep/example/beepd-config.xml
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/org/beepcore/beep/util
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/org/beepcore/beep/example
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/org/beepcore/beep
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/org/beepcore
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/org
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
diff --git a/net/spread-j/Makefile b/net/spread-j/Makefile
index ecdcc78979a9..933f36779521 100644
--- a/net/spread-j/Makefile
+++ b/net/spread-j/Makefile
@@ -18,7 +18,7 @@ USE_JAVA= YES
JAVA_VERSION= 1.6+
PKGMESSAGE= ${WRKSRC}/../license.txt
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS EXAMPLES
ANT?= ${LOCALBASE}/bin/ant
ANT_PARAMS+= -Dlib.dir=${STAGEDIR}${JAVAJARDIR} -Djavadoc.destdir=docs -Dversion=${PORTVERSION}
@@ -36,12 +36,11 @@ PORTDOCS+= java
.endif
do-build:
- cd ${WRKSRC} && \
- ${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT} ${ANT_TARGET} ${ANT_PARAMS}
+ (cd ${WRKSRC} && \
+ ${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT} ${ANT_TARGET} ${ANT_PARAMS})
do-install:
- cd ${WRKSRC} && ${ANT} install ${ANT_PARAMS}
-.if ${PORT_OPTIONS:MDOCS}
+ (cd ${WRKSRC} && ${ANT} install ${ANT_PARAMS})
${INSTALL} -d -o root -g wheel -m 0755 ${STAGEDIR}${EXAMPLESDIR}/java
${INSTALL_DATA} ${WRKSRC}/recThread.java ${STAGEDIR}${EXAMPLESDIR}/java
${INSTALL_DATA} ${WRKSRC}/Flooder.java ${STAGEDIR}${EXAMPLESDIR}/java
@@ -55,6 +54,5 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/docs/stylesheet.css ${STAGEDIR}${DOCSDIR}/java/html
${INSTALL_DATA} ${WRKSRC}/docs/spread/*.html ${STAGEDIR}${DOCSDIR}/java/html/spread
${INSTALL_DATA} ${WRKSRC}/docs/spread/class-use/*.html ${STAGEDIR}${DOCSDIR}/java/html/spread/class-use
-.endif
.include <bsd.port.mk>
diff --git a/net/spread-j/pkg-plist b/net/spread-j/pkg-plist
index 562d47dc3e4e..56a517486e08 100644
--- a/net/spread-j/pkg-plist
+++ b/net/spread-j/pkg-plist
@@ -1,6 +1,6 @@
%%JAVAJARDIR%%/%%PORTNAME%%-%%PORTVERSION%%.jar
-%%PORTDOCS%%%%EXAMPLESDIR%%/java/Flooder.java
-%%PORTDOCS%%%%EXAMPLESDIR%%/java/recThread.java
-%%PORTDOCS%%%%EXAMPLESDIR%%/java/User.java
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/java
-%%PORTDOCS%%@dirrmtry %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/Flooder.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/recThread.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/User.java
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/java
+%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
diff --git a/net/wakeonlan/Makefile b/net/wakeonlan/Makefile
index 307c1138494f..e524ec9b4144 100644
--- a/net/wakeonlan/Makefile
+++ b/net/wakeonlan/Makefile
@@ -12,6 +12,8 @@ COMMENT= Sends magic packets to WOL enabled NIC to switch on the called PC
USES= perl5
USE_PERL5= configure
+OPTIONS_DEFINE= EXAMPLES
+
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/lab001.wol ${STAGEDIR}${EXAMPLESDIR}
diff --git a/net/wakeonlan/pkg-plist b/net/wakeonlan/pkg-plist
index df2f6bc759a8..b06df64fd0a9 100644
--- a/net/wakeonlan/pkg-plist
+++ b/net/wakeonlan/pkg-plist
@@ -1,6 +1,6 @@
bin/wakeonlan
man/man1/wakeonlan.1.gz
%%SITE_PERL%%/%%PERL_ARCH%%/auto/wakeonlan/.packlist
-%%EXAMPLESDIR%%/lab001.wol
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lab001.wol
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/wakeonlan
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
diff --git a/security/libgnomesu/Makefile b/security/libgnomesu/Makefile
index 55e4abd1887d..39e4593035fd 100644
--- a/security/libgnomesu/Makefile
+++ b/security/libgnomesu/Makefile
@@ -27,9 +27,9 @@ post-patch:
${WRKSRC}/src/Makefile.in
post-install:
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${FILESDIR}/gnomesu-pam.sample ${STAGEDIR}${EXAMPLESDIR}
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/api.html ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/libgnomesu.css ${STAGEDIR}${DOCSDIR}
diff --git a/security/libgnomesu/pkg-plist b/security/libgnomesu/pkg-plist
index ce1f3e0d417e..6981e642a4c6 100644
--- a/security/libgnomesu/pkg-plist
+++ b/security/libgnomesu/pkg-plist
@@ -9,7 +9,7 @@ libexec/gnomesu-backend
libexec/gnomesu-pam-backend
%%PORTDOCS%%%%DOCSDIR%%/api.html
%%PORTDOCS%%%%DOCSDIR%%/libgnomesu.css
-%%EXAMPLESDIR%%/gnomesu-pam.sample
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gnomesu-pam.sample
share/application-registry/gnomesu-nautilus.applications
share/mime-info/gnomesu-nautilus.keys
share/locale/az/LC_MESSAGES/libgnomesu-1.0.mo
@@ -51,5 +51,5 @@ share/locale/zh_CN/LC_MESSAGES/libgnomesu-1.0.mo
share/locale/zh_TW/LC_MESSAGES/libgnomesu-1.0.mo
@dirrm include/libgnomesu-1.0/libgnomesu
@dirrm include/libgnomesu-1.0
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
diff --git a/security/snort-rep/Makefile b/security/snort-rep/Makefile
index 2f98cb1bc37c..50948bd35494 100644
--- a/security/snort-rep/Makefile
+++ b/security/snort-rep/Makefile
@@ -16,7 +16,7 @@ SHEBANG_FILES= snort-rep snort-rep-mail
OPTIONS_DEFINE= EXAMPLES
do-build:
- cd ${BUILD_WRKSRC} ; pod2man --lax snort-rep > snort-rep.1
+ (cd ${BUILD_WRKSRC} ; pod2man --lax snort-rep > snort-rep.1)
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/snort-rep ${STAGEDIR}${PREFIX}/bin
diff --git a/security/snort-rep/pkg-plist b/security/snort-rep/pkg-plist
index e514c92ec061..19b148e54890 100644
--- a/security/snort-rep/pkg-plist
+++ b/security/snort-rep/pkg-plist
@@ -1,4 +1,4 @@
bin/snort-rep
man/man1/snort-rep.1.gz
-%%EXAMPLESDIR%%/snort-rep-mail
-@dirrm share/examples/snort-rep
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/snort-rep-mail
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
diff --git a/sysutils/gosa/Makefile b/sysutils/gosa/Makefile
index e462b421c9dc..ede655d8277c 100644
--- a/sysutils/gosa/Makefile
+++ b/sysutils/gosa/Makefile
@@ -55,9 +55,9 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/update-gosa.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/gosa.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- (cd ${WRKSRC} && ${COPYTREE_SHARE} "contrib" ${STAGEDIR}${EXAMPLESDIR})
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} contrib ${STAGEDIR}${EXAMPLESDIR})
@${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${DOCSDIR}
- (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "*" ${STAGEDIR}${DOCSDIR})
+ (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS COPYING Changelog FAQ \
INSTALL README README.safemode ${STAGEDIR}${DOCSDIR})
diff --git a/textproc/gastex/Makefile b/textproc/gastex/Makefile
index 26defb167c89..603dee5024db 100644
--- a/textproc/gastex/Makefile
+++ b/textproc/gastex/Makefile
@@ -20,6 +20,8 @@ TEXMFDIR?= share/texmf
GASTEXDIR= ${PREFIX}/${TEXMFDIR}/tex/latex/gastex
GASDVIDIR= ${PREFIX}/${TEXMFDIR}/dvips/gastex
+OPTIONS_DEFINE= EXAMPLES
+
do-install:
@${MKDIR} ${STAGEDIR}${GASTEXDIR}
@${MKDIR} ${STAGEDIR}${GASDVIDIR}
diff --git a/textproc/gastex/pkg-plist b/textproc/gastex/pkg-plist
index 5328630ea0e2..dae58ac85334 100644
--- a/textproc/gastex/pkg-plist
+++ b/textproc/gastex/pkg-plist
@@ -1,8 +1,8 @@
share/texmf/tex/latex/gastex/gastex.sty
share/texmf/dvips/gastex/gastex.pro
-%%EXAMPLESDIR%%/ex-gastex.tex
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ex-gastex.tex
@dirrm share/texmf/tex/latex/gastex
@dirrm share/texmf/dvips/gastex
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@exec %D/bin/mktexlsr
@unexec %D/bin/mktexlsr
diff --git a/textproc/ppower4/Makefile b/textproc/ppower4/Makefile
index 3df248bc3be0..e7c7f27126e8 100644
--- a/textproc/ppower4/Makefile
+++ b/textproc/ppower4/Makefile
@@ -35,7 +35,7 @@ PLIST_SUB= STY_DIR="${STY_DIR:S,^${PREFIX}/,,}" \
SUB_FILES= ppower4.sh
SUB_LIST= JARFILE=${JAR_DIR}/pp4p.jar
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS EXAMPLES
do-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/textproc/ppower4/pkg-plist b/textproc/ppower4/pkg-plist
index 361bb081a4e9..e0c8110f5d97 100644
--- a/textproc/ppower4/pkg-plist
+++ b/textproc/ppower4/pkg-plist
@@ -1,19 +1,19 @@
bin/ppower4
%%PORTDOCS%%%%DOCSDIR%%/manual.pdf
-%%PORTDOCS%%%%EXAMPLESDIR%%/leveldemo.tex
-%%PORTDOCS%%%%EXAMPLESDIR%%/example.1
-%%PORTDOCS%%%%EXAMPLESDIR%%/example.2
-%%PORTDOCS%%%%EXAMPLESDIR%%/example.3
-%%PORTDOCS%%%%EXAMPLESDIR%%/example.4
-%%PORTDOCS%%%%EXAMPLESDIR%%/example.5
-%%PORTDOCS%%%%EXAMPLESDIR%%/example.6
-%%PORTDOCS%%%%EXAMPLESDIR%%/example.7
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/leveldemo.tex
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.1
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.2
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.3
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.4
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.5
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.6
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.7
%%JAR_DIR%%/pp4p.jar
%%STY_DIR%%/pause.sty
%%STY_DIR%%/background.sty
%%STY_DIR%%/pp4link.sty
%%STY_DIR%%/mpmulti.sty
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrm %%JAR_DIR%%
@dirrm %%STY_DIR%%
diff --git a/textproc/saxon/Makefile b/textproc/saxon/Makefile
index 259107365c72..0754009b55f4 100644
--- a/textproc/saxon/Makefile
+++ b/textproc/saxon/Makefile
@@ -22,7 +22,7 @@ NO_BUILD= yes
CONFLICTS= saxon-devel-8.*
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS EXAMPLES
JARFILES= saxon-jdom.jar saxon.jar
PLIST_FILES+= ${JARFILES:S,^,%%JAVAJARDIR%%/,} bin/saxon
@@ -43,14 +43,14 @@ do-install:
.endfor
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}..."
- cd ${WRKSRC}/samples/ && \
+ (cd ${WRKSRC}/samples/ && \
${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/{} \; && \
- ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} \;
+ ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} \;)
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
- cd ${WRKSRC}/doc/ && \
+ (cd ${WRKSRC}/doc/ && \
${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; && \
- ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
+ ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;)
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing script in ${PREFIX}/bin..."
${INSTALL_SCRIPT} ${WRKDIR}/saxon.sh ${STAGEDIR}${PREFIX}/bin/saxon
diff --git a/textproc/saxon/pkg-plist b/textproc/saxon/pkg-plist
index 6127ad17e277..3f4738ffe509 100644
--- a/textproc/saxon/pkg-plist
+++ b/textproc/saxon/pkg-plist
@@ -1,57 +1,57 @@
-%%EXAMPLESDIR%%/data/books.dtd
-%%EXAMPLESDIR%%/data/books.xml
-%%EXAMPLESDIR%%/data/othello.xml
-%%EXAMPLESDIR%%/data/play.dtd
-%%EXAMPLESDIR%%/java/ExampleContentHandler.class
-%%EXAMPLESDIR%%/java/ExampleContentHandler.java
-%%EXAMPLESDIR%%/java/JDOMExample.class
-%%EXAMPLESDIR%%/java/JDOMExample.java
-%%EXAMPLESDIR%%/java/SaxonServlet.class
-%%EXAMPLESDIR%%/java/SaxonServlet.java
-%%EXAMPLESDIR%%/java/ShowBooks$1.class
-%%EXAMPLESDIR%%/java/ShowBooks$BookListHandler.class
-%%EXAMPLESDIR%%/java/ShowBooks$BooksHandler.class
-%%EXAMPLESDIR%%/java/ShowBooks$CategoryHandler.class
-%%EXAMPLESDIR%%/java/ShowBooks$ItemHandler.class
-%%EXAMPLESDIR%%/java/ShowBooks.class
-%%EXAMPLESDIR%%/java/ShowBooks.java
-%%EXAMPLESDIR%%/java/TraxExamples$1.class
-%%EXAMPLESDIR%%/java/TraxExamples$ModifyStylesheetFilter.class
-%%EXAMPLESDIR%%/java/TraxExamples$UserURIResolver.class
-%%EXAMPLESDIR%%/java/TraxExamples.class
-%%EXAMPLESDIR%%/java/TraxExamples.java
-%%EXAMPLESDIR%%/styles/bible.xsl
-%%EXAMPLESDIR%%/styles/books-attsets.xsl
-%%EXAMPLESDIR%%/styles/books-csv.xsl
-%%EXAMPLESDIR%%/styles/books-sql.xsl
-%%EXAMPLESDIR%%/styles/books-tle.xsl
-%%EXAMPLESDIR%%/styles/books.xsl
-%%EXAMPLESDIR%%/styles/play.xsl
-%%EXAMPLESDIR%%/styles/total.xsl
-%%EXAMPLESDIR%%/styles/tour10.xsl
-%%EXAMPLESDIR%%/styles/tour11.xsl
-%%EXAMPLESDIR%%/trax/exampleSimple2.out
-%%EXAMPLESDIR%%/trax/xml/baz.xml
-%%EXAMPLESDIR%%/trax/xml/embedded.xml
-%%EXAMPLESDIR%%/trax/xml/foo.xml
-%%EXAMPLESDIR%%/trax/xml/subdir1/foo2.xml
-%%EXAMPLESDIR%%/trax/xml/subdir1/subdir2/foo3.xml
-%%EXAMPLESDIR%%/trax/xsl/baz.xsl
-%%EXAMPLESDIR%%/trax/xsl/foo.xsl
-%%EXAMPLESDIR%%/trax/xsl/foo2.xsl
-%%EXAMPLESDIR%%/trax/xsl/foo3.xsl
-%%EXAMPLESDIR%%/trax/xsl/inc1/inc1.xsl
-%%EXAMPLESDIR%%/trax/xsl/inc1/inc2/inc2.xsl
-%%EXAMPLESDIR%%/trax/xsl/preamble.txt
-%%EXAMPLESDIR%%/trax/xsl/text.xsl
-@dirrm %%EXAMPLESDIR%%/trax/xsl/inc1/inc2
-@dirrm %%EXAMPLESDIR%%/trax/xsl/inc1
-@dirrm %%EXAMPLESDIR%%/trax/xsl
-@dirrm %%EXAMPLESDIR%%/trax/xml/subdir1/subdir2
-@dirrm %%EXAMPLESDIR%%/trax/xml/subdir1
-@dirrm %%EXAMPLESDIR%%/trax/xml
-@dirrm %%EXAMPLESDIR%%/trax
-@dirrm %%EXAMPLESDIR%%/styles
-@dirrm %%EXAMPLESDIR%%/java
-@dirrm %%EXAMPLESDIR%%/data
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/data/books.dtd
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/data/books.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/data/othello.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/data/play.dtd
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/ExampleContentHandler.class
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/ExampleContentHandler.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/JDOMExample.class
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/JDOMExample.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/SaxonServlet.class
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/SaxonServlet.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/ShowBooks$1.class
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/ShowBooks$BookListHandler.class
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/ShowBooks$BooksHandler.class
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/ShowBooks$CategoryHandler.class
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/ShowBooks$ItemHandler.class
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/ShowBooks.class
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/ShowBooks.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/TraxExamples$1.class
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/TraxExamples$ModifyStylesheetFilter.class
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/TraxExamples$UserURIResolver.class
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/TraxExamples.class
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/java/TraxExamples.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/styles/bible.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/styles/books-attsets.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/styles/books-csv.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/styles/books-sql.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/styles/books-tle.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/styles/books.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/styles/play.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/styles/total.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/styles/tour10.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/styles/tour11.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/exampleSimple2.out
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/xml/baz.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/xml/embedded.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/xml/foo.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/xml/subdir1/foo2.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/xml/subdir1/subdir2/foo3.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/xsl/baz.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/xsl/foo.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/xsl/foo2.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/xsl/foo3.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/xsl/inc1/inc1.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/xsl/inc1/inc2/inc2.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/xsl/preamble.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trax/xsl/text.xsl
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/trax/xsl/inc1/inc2
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/trax/xsl/inc1
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/trax/xsl
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/trax/xml/subdir1/subdir2
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/trax/xml/subdir1
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/trax/xml
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/trax
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/styles
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/java
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/data
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
diff --git a/textproc/xt/Makefile b/textproc/xt/Makefile
index 69ae1b67521e..f3b84eca6df6 100644
--- a/textproc/xt/Makefile
+++ b/textproc/xt/Makefile
@@ -19,7 +19,7 @@ USE_JAVA= YES
JAVA_VERSION= 1.6+
NO_BUILD= YES
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS EXAMPLES
OTHERDOCS= copying.txt copyingjc.txt index.html
PORTDOCS= ${OTHERDOCS} api
@@ -41,13 +41,13 @@ do-install:
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} ">> Installing samples in ${EXAMPLESDIR}..."
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- cd ${WRKSRC}/demo && ${INSTALL_DATA} ${SAMPLES} ${STAGEDIR}${EXAMPLESDIR}/
+ (cd ${WRKSRC}/demo && ${INSTALL_DATA} ${SAMPLES} ${STAGEDIR}${EXAMPLESDIR}/)
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} ">> Installing documentation in ${DOCSDIR}..."
${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC}/doc && ${FIND} api \
- | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1
- cd ${WRKSRC} && ${INSTALL_DATA} ${OTHERDOCS} ${STAGEDIR}${DOCSDIR}/
+ (cd ${WRKSRC}/doc && ${FIND} api \
+ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1)
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${OTHERDOCS} ${STAGEDIR}${DOCSDIR}/)
@${ECHO_MSG} " [ DONE ]"
.include <bsd.port.mk>
diff --git a/textproc/xt/pkg-plist b/textproc/xt/pkg-plist
index d8148b556d18..989b2ffef991 100644
--- a/textproc/xt/pkg-plist
+++ b/textproc/xt/pkg-plist
@@ -2,14 +2,14 @@ bin/xt
bin/xt-xml4j
bin/xt-xp
%%JAVAJARDIR%%/xt.jar
-%%EXAMPLESDIR%%/date.xsl
-%%EXAMPLESDIR%%/nxml.xsl
-%%EXAMPLESDIR%%/slides.xml
-%%EXAMPLESDIR%%/slides.xsl
-%%EXAMPLESDIR%%/sort-uniq.xml
-%%EXAMPLESDIR%%/sort-uniq.xsl
-%%EXAMPLESDIR%%/split.xml
-%%EXAMPLESDIR%%/split.xsl
-%%EXAMPLESDIR%%/textfile.xml
-%%EXAMPLESDIR%%/textfile.xsl
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/date.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nxml.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/slides.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/slides.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sort-uniq.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sort-uniq.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/split.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/split.xsl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/textfile.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/textfile.xsl
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
diff --git a/www/zen-cart/Makefile b/www/zen-cart/Makefile
index 014725346ff1..4d9c8f8d6e8d 100644
--- a/www/zen-cart/Makefile
+++ b/www/zen-cart/Makefile
@@ -19,31 +19,31 @@ USE_PHP= yes
WANT_PHP_WEB= yes
DOS2UNIX_REGEX= .*\.php
-EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}
NO_BUILD= yes
SUB_FILES= pkg-message
SUB_LIST= WWWDIR="${WWWDIR}" PORTNAME="${PORTNAME}"
-PLIST_SUB+= WWWDIR=${WWWDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} EXAMPLESDIR_REL=${EXAMPLESDIR_REL} \
- PORTNAME=${PORTNAME}
+PLIST_SUB+= WWWDIR=${WWWDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} PORTNAME=${PORTNAME}
+
+OPTIONS_DEFINE= EXAMPLES
do-install:
- @if [ ! -d ${STAGEDIR}${WWWDIR} ]; then ${MKDIR} ${STAGEDIR}${WWWDIR} ; fi
- @cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${EXAMPLESDIR} && ${RM} -rf ${WRKSRC}/docs
- @cd ${WRKSRC} && ${MV} vbv_learn_more.html ${STAGEDIR}${EXAMPLESDIR}/
- @cd ${WRKSRC} && ${MV} mcs_learn_more.html ${STAGEDIR}${EXAMPLESDIR}/
- @cd ${WRKSRC} && ${MV} robots_example.txt ${STAGEDIR}${EXAMPLESDIR}/
- @cd ${WRKSRC} && ${MV} install.txt ${STAGEDIR}${EXAMPLESDIR}/
- @cd ${WRKSRC} && ${MV} nddbc.html ${STAGEDIR}${EXAMPLESDIR}/
- @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
- @${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}
- @${CHMOD} 0777 ${STAGEDIR}${WWWDIR}/cache
- @cd ${STAGEDIR}${WWWDIR}/images && ${FIND} . -type d -exec ${CHMOD} 0777 {} \;
- @cd ${STAGEDIR}${WWWDIR}/includes/languages/english && ${FIND} html_includes -type d -exec ${CHMOD} 0777 {} \;
- @${CHMOD} 0777 ${STAGEDIR}${WWWDIR}/media
- @${CHMOD} 0777 ${STAGEDIR}${WWWDIR}/pub
- @${CHMOD} 0777 ${STAGEDIR}${WWWDIR}/admin/backups
- @${CHMOD} 0777 ${STAGEDIR}${WWWDIR}/admin/images/graphs
+ @${MKDIR} ${STAGEDIR}${WWWDIR}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${EXAMPLESDIR} && ${RM} -rf ${WRKSRC}/docs
+ (cd ${WRKSRC} && ${MV} vbv_learn_more.html ${STAGEDIR}${EXAMPLESDIR}/)
+ (cd ${WRKSRC} && ${MV} mcs_learn_more.html ${STAGEDIR}${EXAMPLESDIR}/)
+ (cd ${WRKSRC} && ${MV} robots_example.txt ${STAGEDIR}${EXAMPLESDIR}/)
+ (cd ${WRKSRC} && ${MV} install.txt ${STAGEDIR}${EXAMPLESDIR}/)
+ (cd ${WRKSRC} && ${MV} nddbc.html ${STAGEDIR}${EXAMPLESDIR}/)
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/)
+ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
+ ${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}
+ ${CHMOD} 0777 ${STAGEDIR}${WWWDIR}/cache
+ (cd ${STAGEDIR}${WWWDIR}/images && ${FIND} . -type d -exec ${CHMOD} 0777 {} \;)
+ (cd ${STAGEDIR}${WWWDIR}/includes/languages/english && ${FIND} html_includes -type d -exec ${CHMOD} 0777 {} \;)
+ ${CHMOD} 0777 ${STAGEDIR}${WWWDIR}/media
+ ${CHMOD} 0777 ${STAGEDIR}${WWWDIR}/pub
+ ${CHMOD} 0777 ${STAGEDIR}${WWWDIR}/admin/backups
+ ${CHMOD} 0777 ${STAGEDIR}${WWWDIR}/admin/images/graphs
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
@${ECHO_CMD} '@exec ${CHMOD} 0777 ${WWWDIR}/cache' >> ${TMPPLIST}
diff --git a/www/zen-cart/pkg-plist b/www/zen-cart/pkg-plist
index 47de0d469622..1108ffa830bb 100644
--- a/www/zen-cart/pkg-plist
+++ b/www/zen-cart/pkg-plist
@@ -4,58 +4,58 @@ www/%%PORTNAME%%/includes/dist-configure.php
@unexec if cmp -s %D/www/%%PORTNAME%%/admin/includes/dist-configure.php %D/www/%%PORTNAME%%/admin/includes/configure.php; then rm -f %D/www/%%PORTNAME%%/admin/includes/configure.php; fi
www/%%PORTNAME%%/admin/includes/dist-configure.php
@exec if [ ! -f %D/www/%%PORTNAME%%/admin/includes/configure.php ] ; then cp -p %D/%F %B/configure.php; fi
-%%EXAMPLESDIR_REL%%/docs/.htaccess
-%%EXAMPLESDIR_REL%%/docs/0.about_zen_cart.html
-%%EXAMPLESDIR_REL%%/docs/1.readme_installation.html
-%%EXAMPLESDIR_REL%%/docs/2.readme_how_to_upgrade.html
-%%EXAMPLESDIR_REL%%/docs/3.readme_paypal_ipn.html
-%%EXAMPLESDIR_REL%%/docs/4.readme_html_email_templates.html
-%%EXAMPLESDIR_REL%%/docs/5.renaming_the_admin_directory.html
-%%EXAMPLESDIR_REL%%/docs/INSTALL.TXT
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-0-1.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-0-2.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-0.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-5.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-6.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-7-1.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-7.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-8.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-9a.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-9b.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-9c.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-9d.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-9e.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-9f.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-9g.html
-%%EXAMPLESDIR_REL%%/docs/changelog-v1-3-9h.html
-%%EXAMPLESDIR_REL%%/docs/important_site_security_recommendations.html
-%%EXAMPLESDIR_REL%%/docs/index.html
-%%EXAMPLESDIR_REL%%/install.txt
-%%EXAMPLESDIR_REL%%/mcs_learn_more.html
-%%EXAMPLESDIR_REL%%/nddbc.html
-%%EXAMPLESDIR_REL%%/docs/osi-certified-120x100.png
-%%EXAMPLESDIR_REL%%/docs/product_types_readme.html
-%%EXAMPLESDIR_REL%%/docs/read_me_jscript.html
-%%EXAMPLESDIR_REL%%/docs/read_me_onload.html
-%%EXAMPLESDIR_REL%%/docs/readme_css_system.html
-%%EXAMPLESDIR_REL%%/robots_example.txt
-%%EXAMPLESDIR_REL%%/vbv_learn_more.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.0.1.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.0.2.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.0.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.5.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.6.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.7-1.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.7.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.8.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.9a.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.9b.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.9c.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.9d.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.9e.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.9f.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.9g.html
-%%EXAMPLESDIR_REL%%/docs/whatsnew_1.3.9h.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/.htaccess
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/0.about_zen_cart.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/1.readme_installation.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/2.readme_how_to_upgrade.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/3.readme_paypal_ipn.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/4.readme_html_email_templates.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/5.renaming_the_admin_directory.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/INSTALL.TXT
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-0-1.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-0-2.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-0.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-5.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-6.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-7-1.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-7.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-8.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-9a.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-9b.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-9c.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-9d.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-9e.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-9f.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-9g.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/changelog-v1-3-9h.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/important_site_security_recommendations.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/index.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/install.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mcs_learn_more.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nddbc.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/osi-certified-120x100.png
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/product_types_readme.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/read_me_jscript.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/read_me_onload.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/readme_css_system.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/robots_example.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/vbv_learn_more.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.0.1.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.0.2.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.0.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.5.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.6.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.7-1.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.7.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.8.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.9a.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.9b.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.9c.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.9d.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.9e.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.9f.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.9g.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/docs/whatsnew_1.3.9h.html
www/%%PORTNAME%%/admin/.htaccess
www/%%PORTNAME%%/admin/admin.php
www/%%PORTNAME%%/admin/alert_page.php
@@ -2036,5 +2036,5 @@ www/%%PORTNAME%%/zc_install/version.php
@dirrmtry www/%%PORTNAME%%/admin/backups
@dirrmtry www/%%PORTNAME%%/admin
@dirrmtry www/%%PORTNAME%%
-@dirrm %%EXAMPLESDIR_REL%%/docs
-@dirrm %%EXAMPLESDIR_REL%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/docs
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%