Install SWID tag also in /share/
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 2 Sep 2013 12:01:05 +0000 (14:01 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 2 Sep 2013 12:01:05 +0000 (14:01 +0200)
src/libpts/plugins/imc_swid/Makefile.am

index f5bf975..f355ebf 100644 (file)
@@ -2,7 +2,8 @@ regid = regid.2004-03.org.strongswan
 unique_sw_id = strongSwan-$(PACKAGE_VERSION_MAJOR)-$(PACKAGE_VERSION_MINOR)-$(PACKAGE_VERSION_BUILD)$(PACKAGE_VERSION_REVIEW)
 swid_tag = $(regid)_$(unique_sw_id).swidtag
 
-ipsec_SCRIPTS = $(swid_tag)
+swiddir = $(prefix)/share/$(regid)
+swid_DATA = $(swid_tag)
 EXTRA_DIST = $(regid)_strongSwan.swidtag.in
 CLEANFILES = $(regid)_strongSwan*.swidtag
 
@@ -36,7 +37,7 @@ imc_swid_la_SOURCES = imc_swid.c imc_swid_state.h imc_swid_state.c
 imc_swid_la_LDFLAGS = -module -avoid-version
 
 install-data-hook:
-       chmod a-x $(DESTDIR)$(ipsecdir)/$(swid_tag)
+       cp $(swiddir)/$(swid_tag) $(DESTDIR)$(ipsecdir)
 
 uninstall-hook:
        rm $(DESTDIR)$(ipsecdir)/*.swidtag