pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
slurm-devel: Remove WRKDIR references from example Makefile
Module Name: pkgsrc-wip
Committed By: Jason Bacon <bacon4000%gmail.com@localhost>
Pushed By: outpaddling
Date: Thu May 12 14:57:37 2016 -0500
Changeset: bfca1ebd5716edf212c933a14af8815ba37258f6
Modified Files:
slurm-devel/Makefile
Log Message:
slurm-devel: Remove WRKDIR references from example Makefile
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=bfca1ebd5716edf212c933a14af8815ba37258f6
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
slurm-devel/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diffs:
diff --git a/slurm-devel/Makefile b/slurm-devel/Makefile
index eddfa7e..bc44fd5 100644
--- a/slurm-devel/Makefile
+++ b/slurm-devel/Makefile
@@ -41,7 +41,13 @@ SUBST_SED.linuxinit+= -e 's|@sbindir@|$${exec_prefix}/sbin|'
SUBST_SED.linuxinit+= -e 's|@libdir@|$${exec_prefix}/lib|'
SUBST_SED.linuxinit+= -e 's|@sysconfdir@|$${prefix}/etc|'
+MAKEFILE_EXAMPLE= $(WRKSRC)/etc/Makefile
+
post-install:
+ # Sanity checks fail if installed files contain references to WRKSRC
+ $(SED) -e "s|${WRKDIR}|PREFIX|g" \
+ $(MAKEFILE_EXAMPLE) > $(MAKEFILE_EXAMPLE).tmp
+ $(MV) -f $(MAKEFILE_EXAMPLE).tmp $(MAKEFILE_EXAMPLE)
$(RM) -f $(WRKSRC)/etc/init.d.slurm.in.orig
$(INSTALL_DATA_DIR) $(DESTDIR)$(PREFIX)/share/examples/$(PKGBASE)
$(INSTALL_DATA) $(WRKSRC)/etc/* $(DESTDIR)$(PREFIX)/share/examples/$(PKGBASE)/
Home |
Main Index |
Thread Index |
Old Index