diff options
Diffstat (limited to 'meta-oe/recipes-support/atop/atop/fix-permissions.patch')
| -rw-r--r-- | meta-oe/recipes-support/atop/atop/fix-permissions.patch | 54 |
1 files changed, 34 insertions, 20 deletions
diff --git a/meta-oe/recipes-support/atop/atop/fix-permissions.patch b/meta-oe/recipes-support/atop/atop/fix-permissions.patch index 8488b38000..10f504b472 100644 --- a/meta-oe/recipes-support/atop/atop/fix-permissions.patch +++ b/meta-oe/recipes-support/atop/atop/fix-permissions.patch | |||
| @@ -8,24 +8,32 @@ everyone could read. | |||
| 8 | 8 | ||
| 9 | Upstream-Status: Inappropriate [embedded specific] | 9 | Upstream-Status: Inappropriate [embedded specific] |
| 10 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | 10 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 11 | Signed-off-by: Tho Dat Nguyen <tho3.nguyen@lge.com> | ||
| 11 | --- | 12 | --- |
| 12 | Makefile | 10 +++++----- | 13 | Makefile | 16 ++++++++-------- |
| 13 | 1 file changed, 5 insertions(+), 5 deletions(-) | 14 | 1 file changed, 8 insertions(+), 8 deletions(-) |
| 14 | 15 | ||
| 15 | diff --git a/Makefile b/Makefile | 16 | diff --git a/Makefile b/Makefile |
| 16 | index 3bf5929..1221ee4 100644 | 17 | index a6f196b..7786f93 100644 |
| 17 | --- a/Makefile | 18 | --- a/Makefile |
| 18 | +++ b/Makefile | 19 | +++ b/Makefile |
| 19 | @@ -72,7 +72,7 @@ systemdinstall: genericinstall | 20 | @@ -77,7 +77,7 @@ install: genericinstall |
| 20 | chmod 0644 $(DESTDIR)$(SYSDPATH)/atopacct.service | 21 | cp atopacct.service $(DESTDIR)$(SYSDPATH) |
| 21 | cp atop.cronsystemd $(DESTDIR)$(CRNPATH)/atop | 22 | chmod 0644 $(DESTDIR)$(SYSDPATH)/atopacct.service |
| 22 | cp atop-pm.sh $(DESTDIR)$(PMPATHD) | 23 | cp atop-pm.sh $(DESTDIR)$(PMPATHD) |
| 23 | - chmod 0711 $(DESTDIR)$(PMPATHD)/atop-pm.sh | 24 | - chmod 0711 $(DESTDIR)$(PMPATHD)/atop-pm.sh |
| 24 | + chmod 0755 $(DESTDIR)$(PMPATHD)/atop-pm.sh | 25 | + chmod 0755 $(DESTDIR)$(PMPATHD)/atop-pm.sh |
| 25 | # | 26 | # |
| 26 | # only when making on target system: | 27 | # only when making on target system: |
| 27 | # | 28 | # |
| 28 | @@ -97,11 +97,11 @@ sysvinstall: genericinstall | 29 | @@ -107,17 +107,17 @@ sysvinstall: genericinstall |
| 30 | cp atopacct.init $(DESTDIR)$(INIPATH)/atopacct | ||
| 31 | cp atop.cronsysv $(DESTDIR)$(CRNPATH)/atop | ||
| 32 | cp atop.daily $(DESTDIR)$(SCRPATH) | ||
| 33 | - chmod 0711 $(DESTDIR)$(SCRPATH)/atop.daily | ||
| 34 | + chmod 0755 $(DESTDIR)$(SCRPATH)/atop.daily | ||
| 35 | touch $(DESTDIR)$(LOGPATH)/dummy_before | ||
| 36 | touch $(DESTDIR)$(LOGPATH)/dummy_after | ||
| 29 | # | 37 | # |
| 30 | if [ -d $(DESTDIR)$(PMPATH1) ]; \ | 38 | if [ -d $(DESTDIR)$(PMPATH1) ]; \ |
| 31 | then cp 45atoppm $(DESTDIR)$(PMPATH1); \ | 39 | then cp 45atoppm $(DESTDIR)$(PMPATH1); \ |
| @@ -39,21 +47,27 @@ index 3bf5929..1221ee4 100644 | |||
| 39 | fi | 47 | fi |
| 40 | # | 48 | # |
| 41 | # | 49 | # |
| 42 | @@ -145,7 +145,7 @@ genericinstall: atop atopacctd atopconvert | 50 | @@ -160,7 +160,7 @@ genericinstall: atop atopacctd atopconvert atopcat atophide |
| 51 | chmod 644 $(DESTDIR)$(DEFPATH)/atop | ||
| 43 | # | 52 | # |
| 44 | cp atop $(DESTDIR)$(BINPATH)/atop | 53 | cp atop $(DESTDIR)$(BINPATH)/atop |
| 45 | chown root $(DESTDIR)$(BINPATH)/atop | 54 | - chmod 0711 $(DESTDIR)$(BINPATH)/atop |
| 46 | - chmod 04711 $(DESTDIR)$(BINPATH)/atop | ||
| 47 | + chmod 0755 $(DESTDIR)$(BINPATH)/atop | 55 | + chmod 0755 $(DESTDIR)$(BINPATH)/atop |
| 48 | ln -sf atop $(DESTDIR)$(BINPATH)/atopsar | 56 | ln -sf atop $(DESTDIR)$(BINPATH)/atopsar |
| 49 | cp atopacctd $(DESTDIR)$(SBINPATH)/atopacctd | 57 | cp atopacctd $(DESTDIR)$(SBINPATH)/atopacctd |
| 50 | chown root $(DESTDIR)$(SBINPATH)/atopacctd | 58 | chmod 0700 $(DESTDIR)$(SBINPATH)/atopacctd |
| 51 | @@ -159,7 +159,7 @@ genericinstall: atop atopacctd atopconvert | 59 | @@ -169,11 +169,11 @@ genericinstall: atop atopacctd atopconvert atopcat atophide |
| 52 | chown root $(DESTDIR)$(BINPATH)/atopconvert | 60 | cp atop $(DESTDIR)$(BINPATH)/atop-$(VERS) |
| 53 | chmod 0711 $(DESTDIR)$(BINPATH)/atopconvert | 61 | ln -sf atop-$(VERS) $(DESTDIR)$(BINPATH)/atopsar-$(VERS) |
| 54 | cp atop.daily $(DESTDIR)$(SCRPATH) | 62 | cp atopconvert $(DESTDIR)$(BINPATH)/atopconvert |
| 55 | - chmod 0711 $(DESTDIR)$(SCRPATH)/atop.daily | 63 | - chmod 0711 $(DESTDIR)$(BINPATH)/atopconvert |
| 56 | + chmod 0755 $(DESTDIR)$(SCRPATH)/atop.daily | 64 | + chmod 0755 $(DESTDIR)$(BINPATH)/atopconvert |
| 65 | cp atopcat $(DESTDIR)$(BINPATH)/atopcat | ||
| 66 | - chmod 0711 $(DESTDIR)$(BINPATH)/atopcat | ||
| 67 | + chmod 0755 $(DESTDIR)$(BINPATH)/atopcat | ||
| 68 | cp atophide $(DESTDIR)$(BINPATH)/atophide | ||
| 69 | - chmod 0711 $(DESTDIR)$(BINPATH)/atophide | ||
| 70 | + chmod 0755 $(DESTDIR)$(BINPATH)/atophide | ||
| 57 | cp man/atop.1 $(DESTDIR)$(MAN1PATH) | 71 | cp man/atop.1 $(DESTDIR)$(MAN1PATH) |
| 58 | cp man/atopsar.1 $(DESTDIR)$(MAN1PATH) | 72 | cp man/atopsar.1 $(DESTDIR)$(MAN1PATH) |
| 59 | cp man/atopconvert.1 $(DESTDIR)$(MAN1PATH) | 73 | cp man/atopconvert.1 $(DESTDIR)$(MAN1PATH) |
