From 6ea5d2cfbbc9fd59572e7e40b88efab320183efe Mon Sep 17 00:00:00 2001 From: "Philip M. Gollucci" Date: Sun, 31 Jan 2010 03:44:21 +0000 Subject: - use $SUB_FILES to dynamically adjust pkg-message PR: ports/142796 Submitted by: Sevan Janiyan Approved by: maintainer timeout (bg1tpt@gmail.com; > 2 weeks) --- mail/phpmailer/Makefile | 7 +------ mail/phpmailer/files/pkg-message | 4 ---- mail/phpmailer/files/pkg-message.in | 4 ++++ mail/phpmailer/pkg-plist | 6 +++--- 4 files changed, 8 insertions(+), 13 deletions(-) delete mode 100644 mail/phpmailer/files/pkg-message create mode 100644 mail/phpmailer/files/pkg-message.in (limited to 'mail/phpmailer') diff --git a/mail/phpmailer/Makefile b/mail/phpmailer/Makefile index 5c2c93f24358..348ced3df96f 100644 --- a/mail/phpmailer/Makefile +++ b/mail/phpmailer/Makefile @@ -21,10 +21,7 @@ NO_BUILD= yes IGNORE_WITH_PHP= 4 USE_PHP= pcre -PKGMESSAGE= ${WRKDIR}/pkg-message -MSG_SRC= ${FILESDIR}/pkg-message - -MSG_SUB= DATADIR=${DATADIR} LOCALBASE=${LOCALBASE} +SUB_FILES= pkg-message do-install: @${MKDIR} ${DATADIR} @@ -48,8 +45,6 @@ do-install: .endif post-install: - @${SED} ${MSG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${MSG_SRC} > \ - ${PKGMESSAGE} @${CAT} ${PKGMESSAGE} .include diff --git a/mail/phpmailer/files/pkg-message b/mail/phpmailer/files/pkg-message deleted file mode 100644 index b9d8ebd9a029..000000000000 --- a/mail/phpmailer/files/pkg-message +++ /dev/null @@ -1,4 +0,0 @@ -You need to adjust php's include_path to contain `%%DATADIR%%'! -For example, insert - include_path = ".:%%DATADIR%%" -into `%%LOCALBASE%%/etc/php.ini'. diff --git a/mail/phpmailer/files/pkg-message.in b/mail/phpmailer/files/pkg-message.in new file mode 100644 index 000000000000..b9d8ebd9a029 --- /dev/null +++ b/mail/phpmailer/files/pkg-message.in @@ -0,0 +1,4 @@ +You need to adjust php's include_path to contain `%%DATADIR%%'! +For example, insert + include_path = ".:%%DATADIR%%" +into `%%LOCALBASE%%/etc/php.ini'. diff --git a/mail/phpmailer/pkg-plist b/mail/phpmailer/pkg-plist index 9f3cdc6a4853..2322b2850538 100644 --- a/mail/phpmailer/pkg-plist +++ b/mail/phpmailer/pkg-plist @@ -61,6 +61,6 @@ @dirrm %%DATADIR%%/test @dirrm %%DATADIR%%/language @dirrm %%DATADIR%% -%%PORTEXAMPLES%%@dirrm %%PORTEXAMPLES%%%%EXAMPLESDIR%%/images -%%PORTEXAMPLES%%@dirrm %%PORTEXAMPLES%%%%EXAMPLESDIR%% -%%PORTDOCS%%@dirrm %%PORTDOCS%%%%DOCSDIR%% +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/images +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% -- cgit v1.2.3