diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2013-10-21 16:25:59 +0200 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2013-10-21 16:25:59 +0200 |
commit | 23d3bc3dafc6f585736b080a26a5d72c256d1939 (patch) | |
tree | d51dc4699fcd1aa6134495f5152a3f3ac1bc0a16 | |
parent | net-mail/davmail-bin: Migrate to EAPI 5, fix KEYWORDS, install in /opt/davemail (diff) | |
download | portage-23d3bc3dafc6f585736b080a26a5d72c256d1939.tar.xz |
net-mail/davmail-bin: Add init scripts
Package-Manager: portage-2.2.7
-rw-r--r-- | metadata/md5-cache/net-mail/davmail-bin-4.1.0.2042 | 2 | ||||
-rw-r--r-- | net-mail/davmail-bin/ChangeLog | 4 | ||||
-rw-r--r-- | net-mail/davmail-bin/Manifest | 6 | ||||
-rw-r--r-- | net-mail/davmail-bin/davmail-bin-4.1.0.2042.ebuild | 11 | ||||
-rw-r--r-- | net-mail/davmail-bin/files/davmail.confd | 7 | ||||
-rwxr-xr-x | net-mail/davmail-bin/files/davmail.initd | 30 |
6 files changed, 53 insertions, 7 deletions
diff --git a/metadata/md5-cache/net-mail/davmail-bin-4.1.0.2042 b/metadata/md5-cache/net-mail/davmail-bin-4.1.0.2042 index 628bc2ea..865b4f5f 100644 --- a/metadata/md5-cache/net-mail/davmail-bin-4.1.0.2042 +++ b/metadata/md5-cache/net-mail/davmail-bin-4.1.0.2042 @@ -9,4 +9,4 @@ RDEPEND=>=virtual/jre-1.6 dev-java/swt SLOT=0 SRC_URI=x86? ( mirror://sourceforge/davmail/davmail-linux-x86-4.1.0-2042.tgz ) amd64? ( mirror://sourceforge/davmail/davmail-linux-x86_64-4.1.0-2042.tgz ) _eclasses_=eutils 4878e7f88afc0ba0866ac112190b0fd4 multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 51e6c948e72c43bcc8edc7544411c953 user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4 -_md5_=e7405e23db4ec7949612c831862fb886 +_md5_=3fd71f2976c7048a04640c2a7667468c diff --git a/net-mail/davmail-bin/ChangeLog b/net-mail/davmail-bin/ChangeLog index 9245298f..b0833c45 100644 --- a/net-mail/davmail-bin/ChangeLog +++ b/net-mail/davmail-bin/ChangeLog @@ -1,3 +1,7 @@ + 21 Oct 2013; Bertrand Jacquin <beber@meleeweb.net> +files/davmail.confd, + +files/davmail.initd, davmail-bin-4.1.0.2042.ebuild: + net-mail/davmail-bin: Add init scripts + 21 Oct 2013; Bertrand Jacquin <beber@meleeweb.net> davmail-bin-4.1.0.2042.ebuild: net-mail/davmail-bin: Migrate to EAPI 5, fix KEYWORDS, install in diff --git a/net-mail/davmail-bin/Manifest b/net-mail/davmail-bin/Manifest index be46ea1a..784e1686 100644 --- a/net-mail/davmail-bin/Manifest +++ b/net-mail/davmail-bin/Manifest @@ -1,7 +1,9 @@ +AUX davmail.confd 148 SHA256 a3536d406eabfbb3968fbdd47ee814670a0e32fdd7a162656c19363d85da7e5e WHIRLPOOL c926cb7aefcd494c90b1bd7005055698f25fe38bcf88913b7fa71d28b043a21d10845e8cf9ea1172fc575e66f0ee067f51a81fe9a3a1351a90c18b1dbd0c8d6d AUX davmail.desktop 203 SHA256 3e4bc2a1ea64cbd47290df4eb07f51a5be2863d9314d5381ea1d7c4738eeba29 WHIRLPOOL 6ff7515443a7ad50152d79f14eb6dc79820564fb20b9c4d7ec43667aa79ebb26d699c5f01079b8c4e717426487ae3ddb652475c7ad89b66f3d17db09fb7850c3 +AUX davmail.initd 672 SHA256 26d7e3355e7dfb0071013c56565d08701e35e201833a4f290b7296ab7fc748f4 WHIRLPOOL e55f9ebb580dc68cd1ed99fc4c24096fa2164cc39e515a2771767d04b10eb4068a747601b4c27fe0c728a00e6778f77d0089e57045f69aeb46271c68542595a4 AUX davmail.png 4218 SHA256 b50a1e8d9ac3e20acf88f77d9524f986041282e9f6ae120c78ee64cf6a20df7e WHIRLPOOL 1c2e4d8d8f5b318878eedbb7676ee5622429fe0a08d2598fc2cba75daa08b3844afabc87360b9f8d6e00aa419f5d5268e738f598b7793efc992cb22144014550 DIST davmail-linux-x86-4.1.0-2042.tgz 6475141 SHA256 b09625ca6ff71e8d462e9ce4a14df326ec6977000ba4537d34e5451dab5cbc46 SHA512 4d1b0b29b92298920e8843da3233bb0fac85458c2c8d6bca08ab5092f51de7fc0b8a9b6c07c831a4caee6b415e9afb6a2247c7010031f20dd939b992bf7c6722 WHIRLPOOL 457a10afd2c6c6172a8b77095fcc76044f2cadbceccf9e1f69eb5c2a63a2ad9c8de8bf22d3b31d44f220f4fd5590d18a1c2799d73894c37dc8b87f5f7429975d DIST davmail-linux-x86_64-4.1.0-2042.tgz 6621416 SHA256 a5aea7380e77c53e3649ca76cf7ef90c5a10f31a714b73df9cbb9ef9bd1f800b SHA512 73a8b00f15601606b2d3239b73199da67ab2d2bed75ca84b5af1a4eb652f14d95d630d66b10ab6894899c1ade96ebe51ce3d149fb11463fd2888e875dcd34cdf WHIRLPOOL e68dd826b49a46b842b95a6bc2122392e7dd31b7f023ff26df598acb6437f4ae847e53b7d8e1cb518b5911f59cd86f1dd3059f64d54d2206e4528a82a25f48a9 -EBUILD davmail-bin-4.1.0.2042.ebuild 1017 SHA256 ce45d06e0c8b4602ee4173908c4792ff8db9da56f28479e80ac46335728a3546 WHIRLPOOL 17cfbcd4b0793b8171384235117c999ea324d6c2b1ed75914c889fdd14d9ba7ff24c0c5c593889029b75a81e5ea8dc3d4f7292eb80145603a69c601b136ce53b -MISC ChangeLog 468 SHA256 88cec5cfe348f56c801f72e161722cd725656ebb8e0c5bbaf0e4b61370b22877 WHIRLPOOL d448194357c2ddf95fe289ddd30bb20411c37c1bac88ee435e82b111eac10981268e03f1782d48458b5f014ce1ba943f2a75685966383a82e38d551a4e87f49d +EBUILD davmail-bin-4.1.0.2042.ebuild 1125 SHA256 ca2ceedb6bb6dbb0cb027c81220dba57b201f6b019ad63a5ae73a0a7bae2059e WHIRLPOOL 42347d95ebbb5911782775769004ad78cf2fdbd576c94429b78a308439c85951799e3a7cba76a98ca64a6961c5b5f0c27d4a9f949b47c87a75fea40b1b78bd99 +MISC ChangeLog 640 SHA256 1186b4d97aae10b1699f9d20c1695fa8d3bb7c8aa049ab4a8e0103c45dc2e80f WHIRLPOOL 844f2161e46870119d949ba98a088728bd86fa6b620b192b144b2c8a56eb611a5932f37feb4af276899c39632a804cb722c19df41fd414007a9424c3d3ff2eb8 MISC metadata.xml 232 SHA256 3e0886d31df5e2b8735dfa995ed12280c69f959a90a4e9d54bafd527110282a3 WHIRLPOOL 47858cf96e435c48f17bc5abc285679acfcc01927852d6809a02c7610b16b81b145f23673070e1f3ae7354dd3876f882f6f00e2ba7320f50150b5c13f140e75b diff --git a/net-mail/davmail-bin/davmail-bin-4.1.0.2042.ebuild b/net-mail/davmail-bin/davmail-bin-4.1.0.2042.ebuild index b4aa8dd1..437003a1 100644 --- a/net-mail/davmail-bin/davmail-bin-4.1.0.2042.ebuild +++ b/net-mail/davmail-bin/davmail-bin-4.1.0.2042.ebuild @@ -29,14 +29,17 @@ use amd64 && S="${WORKDIR}/${MY_PN}-linux-x86_64-${MY_PV}" src_install() { # Fix the script BASE= - sed -i -e "s@BASE=.*@BASE=/opt/${MY_PN}@" davmail.sh + sed -i -e "s@BASE=.*@BASE=/opt/${MY_PN}@" "${MY_PN}.sh" dodir "/opt/${MY_PN}" cp -a * "${ED}/opt/${MY_PN}" dodir "/opt/bin" - dosym "/opt/${MY_PN}/davmail.sh" "/opt/bin/davmail.sh" + dosym "/opt/${MY_PN}/${MY_PN}.sh" "/opt/bin/${MY_PN}.sh" - domenu "${FILESDIR}"/davmail.desktop - doicon "${FILESDIR}"/davmail.png + domenu "${FILESDIR}/${MY_PN}.desktop" + doicon "${FILESDIR}/${MY_PN}.png" + + newinitd "${FILESDIR}/${MY_PN}.initd" "${MY_PN}" + newconfd "${FILESDIR}/${MY_PN}.confd" "${MY_PN}" } diff --git a/net-mail/davmail-bin/files/davmail.confd b/net-mail/davmail-bin/files/davmail.confd new file mode 100644 index 00000000..47155e56 --- /dev/null +++ b/net-mail/davmail-bin/files/davmail.confd @@ -0,0 +1,7 @@ +# /etc/conf.d/davmail: config file for /etc/init.d/davmail + +# Properties files to use +# DAVMAIL_PROPFILE="" + +# User to run as +DAVMAIL_USER="nobody" diff --git a/net-mail/davmail-bin/files/davmail.initd b/net-mail/davmail-bin/files/davmail.initd new file mode 100755 index 00000000..895dabf9 --- /dev/null +++ b/net-mail/davmail-bin/files/davmail.initd @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +: ${pidfile:=/run/${RC_SVCNAME}.pid} + +: ${DAVMAIL_PROPFILE:=/var/www/${RC_SVCNAME}.properties} +: ${DAVMAIL_USER:=nobody} + +depend() { + use net +} + +start() { + ebegin "Starting ${RC_SVCNAME} ${DAVMAIL_PROPFILE}" + start-stop-daemon --start --quiet --background \ + --make-pidfile --pidfile "${pidfile}" \ + --user "${DAVMAIL_USER}" \ + --exec /opt/bin/davmail.sh \ + -- "${DAVMAIL_PROPFILE}" + eend $? +} + +stop() { + ebegin "Stopping ${RC_SVCNAME} ${DAVMAIL_PROPFILE}" + start-stop-daemon --stop --quiet \ + --pidfile "${pidfile}" + eend $? +} |