diff options
author | 2011-06-23 19:10:38 +0530 | |
---|---|---|
committer | 2011-06-23 19:10:38 +0530 | |
commit | 33718bc58475006b85c6c48ad311e6fe4560d9d7 (patch) | |
tree | a8d4bc5eaf9ea75515de5f170b0872d7ec85aa65 /overlay | |
parent | allow masking payload fields (diff) | |
download | gentoostats-33718bc58475006b85c6c48ad311e6fe4560d9d7.tar.gz gentoostats-33718bc58475006b85c6c48ad311e6fe4560d9d7.tar.bz2 gentoostats-33718bc58475006b85c6c48ad311e6fe4560d9d7.zip |
update ebuild
Diffstat (limited to 'overlay')
-rw-r--r-- | overlay/app-portage/gentoostats/Manifest | 2 | ||||
-rw-r--r-- | overlay/app-portage/gentoostats/gentoostats-9999.ebuild | 18 |
2 files changed, 12 insertions, 8 deletions
diff --git a/overlay/app-portage/gentoostats/Manifest b/overlay/app-portage/gentoostats/Manifest index dae9b26..589f9fa 100644 --- a/overlay/app-portage/gentoostats/Manifest +++ b/overlay/app-portage/gentoostats/Manifest @@ -1 +1 @@ -EBUILD gentoostats-9999.ebuild 1156 RMD160 af4280c5a30113fad203deebe2ae5ec1903c9f03 SHA1 4469ad5120f689219f30bc375aa73e6f7d0f69c8 SHA256 7c51b32f7eee3567e46d1e02ab6531d6f0ae8248a411437517beb77b9ddf0475 +EBUILD gentoostats-9999.ebuild 1298 RMD160 149283f99950c8d639e4f90634d9768ecfb20158 SHA1 6bb2040fc224e3e1647fb402af0e263271575732 SHA256 e42afaac058fd5940cba15c676c5ac22889cf89c92fa275c07f17091373a26d7 diff --git a/overlay/app-portage/gentoostats/gentoostats-9999.ebuild b/overlay/app-portage/gentoostats/gentoostats-9999.ebuild index 98ae89d..012b7a3 100644 --- a/overlay/app-portage/gentoostats/gentoostats-9999.ebuild +++ b/overlay/app-portage/gentoostats/gentoostats-9999.ebuild @@ -23,8 +23,6 @@ RDEPEND="${DEPEND} >=app-portage/gentoolkit-0.3.0.2 dev-python/simplejson" -AUTHFILE="${ROOT}"/etc/gentoostats/auth.cfg - src_compile() { cd "client" distutils_src_compile @@ -33,23 +31,29 @@ src_compile() { src_install() { cd "client" distutils_src_install + + dodir /etc/gentoostats || die + insinto /etc/gentoostats + doins payload.cfg || die + + # this doesn't work, why ? + fowners root:portage /etc/gentoostats/payload.cfg || die + fperms 0640 /etc/gentoostats/payload.cfg || die } pkg_postinst() { distutils_pkg_postinst + AUTHFILE="${ROOT}/etc/gentoostats/auth.cfg" if ! [ -f "${AUTHFILE}" ]; then elog "Generating uuid and password in ${AUTHFILE}" - if ! [ -d "$(dirname "${AUTHFILE}")" ]; then - mkdir "$(dirname "${AUTHFILE}")" - fi touch "${AUTHFILE}" echo "[AUTH]" >> "${AUTHFILE}" echo -n "UUID : " >> "${AUTHFILE}" cat /proc/sys/kernel/random/uuid >> "${AUTHFILE}" echo -n "PASSWD : " >> "${AUTHFILE}" < /dev/urandom tr -dc a-zA-Z0-9 | head -c16 >> "${AUTHFILE}" - echo >> "${AUTHFILE}" fi - chmod 0444 "${AUTHFILE}" + chown root:portage "${AUTHFILE}" + chmod 0640 "${AUTHFILE}" } |