From 10607bccaf7c7c4e1f569de5ebdbd137a62fbc63 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 25 May 2015 19:36:34 +0200 Subject: [PATCH] osx: ensure pre/postinstall scripts are created correctly Because we declare the scripts/*install target in `edit.am` and in `Makefile.am`, only one of them is used. With automake, it doesn't seem possible to easily extend a target. Instead, do the chmod just before we need it. --- osx/Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osx/Makefile.am b/osx/Makefile.am index 58fb8759..76f52804 100644 --- a/osx/Makefile.am +++ b/osx/Makefile.am @@ -33,6 +33,7 @@ pkg: requirements ../$(PKG_NAME) # provide optional components to be installed. pkg.1/$(PKG_NAME): $(PKG_DIR) scripts [ -d pkg.1 ] || mkdir pkg.1 + chmod +x scripts/postinstall scripts/preinstall $(PKGBUILD) \ --root $(PKG_DIR) \ --identifier im.bernat.@PACKAGE@.daemon \ @@ -67,9 +68,7 @@ CLEANFILES = $(TEMPLATES) distribution.xml: distribution.xml.in im.bernat.lldpd.plist: im.bernat.lldpd.plist.in scripts/postinstall: scripts/postinstall.in - chmod +x $@ scripts/preinstall: scripts/preinstall.in - chmod +x $@ include $(top_srcdir)/edit.am .PHONY: pkg requirements -- 2.39.5