From 1ed5f298173462cbb3b6c6e8229380896e93d573 Mon Sep 17 00:00:00 2001 From: olgeni Date: Sun, 2 Nov 2008 13:50:08 +0000 Subject: Create missing empty directory from pkg-plist to avoid a pkg_delete warning. Make sure that Install exits with 0 (restore previous patch). No PORTREVISION change needed. --- lang/erlang/Makefile | 8 +++++++- lang/erlang/files/patch-erts_etc_common_Install | 11 +++++++++++ lang/erlang14/Makefile | 8 +++++++- lang/erlang14/files/patch-erts_etc_common_Install | 11 +++++++++++ 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 lang/erlang/files/patch-erts_etc_common_Install create mode 100644 lang/erlang14/files/patch-erts_etc_common_Install (limited to 'lang') diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile index 0530f36a3a82..80b315a4b123 100644 --- a/lang/erlang/Makefile +++ b/lang/erlang/Makefile @@ -141,11 +141,17 @@ post-install: # All non-library files. + @cd ${PREFIX} ; ${FIND} lib/erlang/* -type d -empty \ + | ${GREP} -v "^lib/erlang/lib" \ + | ${SORT} \ + | ${SED} -e 's#^#@exec ${MKDIR} %D/#g' \ + > ${ERLANG_PLIST} + @cd ${PREFIX} ; ${FIND} lib/erlang/* -type f -o -type l \ | ${GREP} -v "^lib/erlang/man" \ | ${GREP} -v "^lib/erlang/lib" \ | ${SORT} \ - > ${ERLANG_PLIST} + >> ${ERLANG_PLIST} # Stock OTP libraries. diff --git a/lang/erlang/files/patch-erts_etc_common_Install b/lang/erlang/files/patch-erts_etc_common_Install new file mode 100644 index 000000000000..837769cfa6b7 --- /dev/null +++ b/lang/erlang/files/patch-erts_etc_common_Install @@ -0,0 +1,11 @@ + +$FreeBSD$ + +--- erts/etc/common/Install.orig ++++ erts/etc/common/Install +@@ -148,4 +148,4 @@ + ./misc/format_man_pages $ERL_ROOT + fi + +- ++exit 0 diff --git a/lang/erlang14/Makefile b/lang/erlang14/Makefile index 0530f36a3a82..80b315a4b123 100644 --- a/lang/erlang14/Makefile +++ b/lang/erlang14/Makefile @@ -141,11 +141,17 @@ post-install: # All non-library files. + @cd ${PREFIX} ; ${FIND} lib/erlang/* -type d -empty \ + | ${GREP} -v "^lib/erlang/lib" \ + | ${SORT} \ + | ${SED} -e 's#^#@exec ${MKDIR} %D/#g' \ + > ${ERLANG_PLIST} + @cd ${PREFIX} ; ${FIND} lib/erlang/* -type f -o -type l \ | ${GREP} -v "^lib/erlang/man" \ | ${GREP} -v "^lib/erlang/lib" \ | ${SORT} \ - > ${ERLANG_PLIST} + >> ${ERLANG_PLIST} # Stock OTP libraries. diff --git a/lang/erlang14/files/patch-erts_etc_common_Install b/lang/erlang14/files/patch-erts_etc_common_Install new file mode 100644 index 000000000000..837769cfa6b7 --- /dev/null +++ b/lang/erlang14/files/patch-erts_etc_common_Install @@ -0,0 +1,11 @@ + +$FreeBSD$ + +--- erts/etc/common/Install.orig ++++ erts/etc/common/Install +@@ -148,4 +148,4 @@ + ./misc/format_man_pages $ERL_ROOT + fi + +- ++exit 0 -- cgit