Fix permissions on *.pyw files

Previously the chmod setting *.pyw files executable was after prepgamesdirs, making the files world executable. It has been moved before it to allow prepgamesdirs
to do its job.
This commit is contained in:
Erki Ferenc 2010-08-12 18:50:21 +02:00
parent d7f73bf691
commit 1116b600ff
3 changed files with 52 additions and 52 deletions

View File

@ -34,27 +34,27 @@ RDEPEND="
DEPEND="${RDEPEND}" DEPEND="${RDEPEND}"
src_install() { src_install() {
insinto "${GAMES_DATADIR}"/${PN} insinto "${GAMES_DATADIR}"/${PN}
doins -r gfx doins -r gfx
doins -r pyfpdb doins -r pyfpdb
doins readme.txt doins readme.txt
exeinto "${GAMES_DATADIR}"/${PN} exeinto "${GAMES_DATADIR}"/${PN}
doexe run_fpdb.py doexe run_fpdb.py
dodir "${GAMES_BINDIR}" dodir "${GAMES_BINDIR}"
dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN} dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN}
newicon gfx/fpdb-icon.png ${PN}.png
make_desktop_entry ${PN}
prepgamesdirs newicon gfx/fpdb-icon.png ${PN}.png
chmod +x ${D}/"${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw make_desktop_entry ${PN}
chmod +x "${D}/${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw
prepgamesdirs
} }
pkg_postinst() { pkg_postinst() {
games_pkg_postinst games_pkg_postinst
elog "Note that if you really want to use mysql or postgresql you will have to create" elog "Note that if you really want to use mysql or postgresql you will have to create"
elog "the database and user yourself and enter it into the fpdb config." elog "the database and user yourself and enter it into the fpdb config."
elog "You can find the instructions on the project's website." elog "You can find the instructions on the project's website."
} }

View File

@ -34,27 +34,27 @@ RDEPEND="
DEPEND="${RDEPEND}" DEPEND="${RDEPEND}"
src_install() { src_install() {
insinto "${GAMES_DATADIR}"/${PN} insinto "${GAMES_DATADIR}"/${PN}
doins -r gfx doins -r gfx
doins -r pyfpdb doins -r pyfpdb
doins readme.txt doins readme.txt
exeinto "${GAMES_DATADIR}"/${PN} exeinto "${GAMES_DATADIR}"/${PN}
doexe run_fpdb.py doexe run_fpdb.py
dodir "${GAMES_BINDIR}" dodir "${GAMES_BINDIR}"
dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN} dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN}
newicon gfx/fpdb-icon.png ${PN}.png
make_desktop_entry ${PN}
prepgamesdirs newicon gfx/fpdb-icon.png ${PN}.png
chmod +x ${D}/"${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw make_desktop_entry ${PN}
chmod +x "${D}/${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw
prepgamesdirs
} }
pkg_postinst() { pkg_postinst() {
games_pkg_postinst games_pkg_postinst
elog "Note that if you really want to use mysql or postgresql you will have to create" elog "Note that if you really want to use mysql or postgresql you will have to create"
elog "the database and user yourself and enter it into the fpdb config." elog "the database and user yourself and enter it into the fpdb config."
elog "You can find the instructions on the project's website." elog "You can find the instructions on the project's website."
} }

View File

@ -35,31 +35,31 @@ RDEPEND="
DEPEND="${RDEPEND}" DEPEND="${RDEPEND}"
src_unpack() { src_unpack() {
git_src_unpack git_src_unpack
} }
src_install() { src_install() {
insinto "${GAMES_DATADIR}"/${PN} insinto "${GAMES_DATADIR}"/${PN}
doins -r gfx doins -r gfx
doins -r pyfpdb doins -r pyfpdb
doins readme.txt doins readme.txt
exeinto "${GAMES_DATADIR}"/${PN} exeinto "${GAMES_DATADIR}"/${PN}
doexe run_fpdb.py doexe run_fpdb.py
dodir "${GAMES_BINDIR}" dodir "${GAMES_BINDIR}"
dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN} dosym "${GAMES_DATADIR}"/${PN}/run_fpdb.py "${GAMES_BINDIR}"/${PN}
newicon gfx/fpdb-icon.png ${PN}.png
make_desktop_entry ${PN}
prepgamesdirs newicon gfx/fpdb-icon.png ${PN}.png
chmod +x ${D}/"${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw make_desktop_entry ${PN}
chmod +x "${D}/${GAMES_DATADIR}"/${PN}/pyfpdb/*.pyw
prepgamesdirs
} }
pkg_postinst() { pkg_postinst() {
games_pkg_postinst games_pkg_postinst
elog "Note that if you really want to use mysql or postgresql you will have to create" elog "Note that if you really want to use mysql or postgresql you will have to create"
elog "the database and user yourself and enter it into the fpdb config." elog "the database and user yourself and enter it into the fpdb config."
elog "You can find the instructions on the project's website." elog "You can find the instructions on the project's website."
} }