openwrt/include
Paul Spooren 353ce2e521 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-08-31 11:13:12 +01:00
..
site
autotools.mk
cmake.mk cmake: Disable use of package registries 2020-08-24 18:53:59 +02:00
debug.mk
depends.mk
device_table.txt
download.mk build: add zstd support to pack/unpack functions 2020-05-31 11:03:30 +02:00
feeds.mk
hardened-ld-pie.specs
hardening.mk buildsystem: Make PIE ASLR option tristate 2020-01-13 15:34:36 +01:00
host-build.mk build: improve ccache support 2020-07-11 15:19:53 +02:00
image-commands.mk build: improve message for incompatible image on "legacy" devices 2020-08-08 16:13:51 +02:00
image-legacy.mk
image.mk build: add support for SELinux to include/image.mk 2020-08-31 01:15:41 +01:00
kernel-build.mk build: add 'make kernel_xconfig' command 2020-07-08 16:07:05 +02:00
kernel-defaults.mk
kernel-version.mk kernel: bump 5.4 to 5.4.61 2020-08-30 19:44:47 +02:00
kernel.mk build: move symvers files to kernel build dir 2020-04-09 09:54:02 +02:00
netfilter.mk kernel: netfilter.mk: fix kmod-ipt-nat6 installation on 5.4 2020-04-20 15:07:17 +02:00
nls.mk
package-bin.mk
package-defaults.mk toolchain: remove gcc libssp and use libc variant 2020-06-17 23:57:07 +02:00
package-dumpinfo.mk
package-ipkg.mk build: ipkg-build use fakeroot with PKG_FILE_MODES 2020-08-31 11:13:12 +01:00
package-seccomp.mk
package.mk build: improve ccache support 2020-07-11 15:19:53 +02:00
prereq-build.mk build: set up host command for egrep 2020-08-06 13:17:13 +02:00
prereq.mk
quilt.mk
rootfs.mk treewide: replace `which` with `command -v` 2020-08-12 11:08:05 +02:00
scan.awk
scan.mk
shell.sh
subdir.mk
target.mk hostapd: add wpad-basic-wolfssl variant 2020-08-07 12:02:19 +02:00
toolchain-build.mk
toplevel.mk build: fix README.md reference after rename 2020-08-12 14:03:17 +02:00
u-boot.mk u-boot.mk: switch download to https 2020-04-26 21:20:47 +02:00
uclibc++.mk
unpack.mk build: add zstd support to pack/unpack functions 2020-05-31 11:03:30 +02:00
verbose.mk
version.mk