Сравнение darkstat-3.0.721-r1 с darkstat-9999999
/usr/portage/net-analyzer/darkstat/darkstat-9999999.ebuild 2023-10-09 14:52:33.308368446 +0300 | ||
---|---|---|
12 | 12 |
inherit git-r3 |
13 | 13 |
else |
14 | 14 |
SRC_URI="https://github.com/emikulic/darkstat/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
15 |
KEYWORDS="amd64 ppc x86" |
|
15 |
KEYWORDS="~amd64 ~ppc ~x86" |
|
16 | 16 |
fi |
17 | 17 | |
18 | 18 |
LICENSE="GPL-2" |
... | ... | |
61 | 61 |
} |
62 | 62 | |
63 | 63 |
pkg_postinst() { |
64 |
# Workaround bug #141619 |
|
65 |
DARKSTAT_CHROOT_DIR=$( |
|
66 |
sed -n 's/^#CHROOT=\(.*\)/\1/p' "${EROOT}"/etc/conf.d/darkstat |
|
67 |
) |
|
68 | ||
69 |
if [[ -n "${DARKSTAT_CHROOT_DIR}" ]] && [[ "${DARKSTAT_CHROOT_DIR}" != "${EROOT:-/}" ]] ; then |
|
70 |
chown darkstat:0 "${EROOT}/${DARKSTAT_CHROOT_DIR#/}/" |
|
71 |
fi |
|
72 | ||
64 | 73 |
elog "To start different darkstat instances which will listen on a different" |
65 | 74 |
elog "interface, create within the ${EROOT}/etc/init.d directory a 'darkstat.if' symlink to" |
66 | 75 |
elog "darkstat script where 'if' is the name of the interface." |
67 | 76 |
elog "Also in the ${EROOT}/etc/conf.d directory, copy darkstat to darkstat.if" |
68 | 77 |
elog "and edit it to change default values." |
69 | 78 |
elog |
70 |
elog "darkstat's default chroot directory is: ${EROOT}/var/lib/darkstat." |
|
71 |
elog "Please chown it to darkstat:0 (or a different directory if you change it)." |
|
79 |
elog "darkstat's default chroot directory is: ${EROOT}/${DARKSTAT_CHROOT_DIR#/}" |
|
72 | 80 |
} |