From e70d58ad08426aba21c8c7e39d2d6ca9ca58015d Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 4 Jun 2009 15:30:00 +0100 Subject: Makefile: Specify permissions on installed executables [thanks mhavela] --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f030821c..f65e7f74 100644 --- a/Makefile +++ b/Makefile @@ -19,8 +19,8 @@ install: prosody.install prosodyctl.install prosody.cfg.lua.install util/encodin install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) $(DATA) install -d $(CONFIG)/certs install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util - install ./prosody.install $(BIN)/prosody - install ./prosodyctl.install $(BIN)/prosodyctl + install -m755 ./prosody.install $(BIN)/prosody + install -m755 ./prosodyctl.install $(BIN)/prosodyctl install -m644 core/* $(SOURCE)/core install -m644 net/* $(SOURCE)/net install -m644 util/* $(SOURCE)/util -- cgit v1.2.3 From a82a7d386ca2cbfb1db79e2cede363516f0a0f99 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 4 Jun 2009 15:46:05 +0100 Subject: Makefile: Set data directory permissions to 750 on install [thanks Dwayne Bent] --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f65e7f74..3a3ea9ef 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,8 @@ all: prosody.install prosodyctl.install prosody.cfg.lua.install $(MAKE) -C util-src install install: prosody.install prosodyctl.install prosody.cfg.lua.install util/encodings.so util/encodings.so util/pposix.so util/signal.so - install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) $(DATA) + install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) + install -m750 -d $(DATA) install -d $(CONFIG)/certs install -d $(SOURCE)/core $(SOURCE)/net $(SOURCE)/util install -m755 ./prosody.install $(BIN)/prosody -- cgit v1.2.3