immortalwrt/include
Paul Spooren 62b44eccae build: ipkg-build use fakeroot with PKG_FILE_MODES
The `ipkg-build` script converts a folder into a `opkg` installable
package. Until now it would use root:root for all packages and try to
preserve file modes.

This has the two drawbacks of packages want to add non-root files or add
SUID files, like the `sudo` package does.

To give more flexibility regarding file modes and avoid init script
hacks, a new variable called `PKG_FILE_MODES`. The variable contains a
list of files modes in the format `path:owner:group:mode`.

An example for the `sudo` package below:

```
PKG_FILE_MODES:=\
        /usr/bin/sudo:root:root:4755 \
        /etc/sudoers:root:root:0440
```

The `ipkg-build` now runs within a fakeroot environment to set any mode
and directly store it in the resulting `ipk` package archive.

Both options `-o` and `-g` are no longer required due to the introduction
of the more flexible `-m` options, which takes the `PKG_FILE_MODES` as
input.

Lastly the option `-c` is removed as it's unused within the script.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-09-01 17:24:55 +08:00
..
site fix permisson 2019-08-16 15:09:42 +08:00
autotools.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
cmake.mk cmake: Disable use of package registries 2020-08-25 12:17:05 +08:00
debug.mk Revert "files: sync from openwrt v19.07 (#2690)" 2020-02-03 12:33:25 +08:00
depends.mk fix permisson 2019-08-16 15:09:42 +08:00
device_table.txt fix permission 2019-09-30 13:52:50 +08:00
download.mk build: add zstd support to pack/unpack functions 2020-05-31 19:37:36 +08:00
feeds.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
hardened-ld-pie.specs fix permission 2019-09-30 13:52:50 +08:00
hardening.mk Revert "files: sync from openwrt v19.07 (#2690)" 2020-02-03 12:33:25 +08:00
host-build.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
image-commands.mk build: image: return sizes if check-size fails 2020-08-03 20:55:10 +08:00
image-legacy.mk fix permisson 2019-08-16 15:09:42 +08:00
image.mk build: add support for SELinux to include/image.mk 2020-08-31 11:12:54 +08:00
kernel-build.mk build: add 'make kernel_xconfig' command 2020-07-09 12:03:26 +08:00
kernel-defaults.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
kernel-version.mk kernel: bump to 4.9.234, 4.14.195, 4.19.142 2020-08-27 04:27:45 +08:00
kernel.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
netfilter.mk kernel/iptables: add modules for qos-gargoyle 2020-02-25 23:03:16 +08:00
nls.mk fix permisson 2019-08-16 15:09:42 +08:00
package-bin.mk fix permisson 2019-08-16 15:09:42 +08:00
package-defaults.mk toolchain: remove gcc libssp and use libc variant 2020-06-18 08:06:20 +08:00
package-dumpinfo.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
package-ipkg.mk build: ipkg-build use fakeroot with PKG_FILE_MODES 2020-09-01 17:24:55 +08:00
package-seccomp.mk fix permisson 2019-08-16 15:09:42 +08:00
package.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
prereq-build.mk build: set up host command for egrep 2020-08-07 17:45:10 +08:00
prereq.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
quilt.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
rootfs.mk treewide: replace which with command -v 2020-08-13 23:30:21 +08:00
scan.awk fix permisson 2019-08-16 15:09:42 +08:00
scan.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
shell.sh add luci-app-haproxy & luci-app-udpspeederv2 2019-05-25 21:05:51 +08:00
subdir.mk fix permisson 2019-08-16 15:09:42 +08:00
target.mk hostapd: add wpad-basic-wolfssl variant 2020-08-23 01:18:17 +08:00
toolchain-build.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
toplevel.mk build: fix README.md reference after rename 2020-08-13 23:31:45 +08:00
u-boot.mk u-boot.mk: switch download to https 2020-04-27 08:55:20 +08:00
uclibc++.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
unpack.mk build: add zstd support to pack/unpack functions 2020-05-31 19:37:36 +08:00
verbose.mk fix permisson 2019-08-16 15:09:42 +08:00
version.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00