From: Vincent Bernat Date: Mon, 25 May 2015 17:36:34 +0000 (+0200) Subject: osx: ensure pre/postinstall scripts are created correctly X-Git-Tag: 0.7.16~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10607bccaf7c7c4e1f569de5ebdbd137a62fbc63;p=thirdparty%2Flldpd.git 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. --- 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