1
0
mirror of synced 2024-12-22 21:00:20 +01:00

Bug fixes to ebuilds & systemd setup script

ebuilds: correct btsync user setup & correct PID storage location
ebuilds: correct information about user configuration storage location
btsync_setup: correct location for PID storage for system wide systemd service unit
btsync_setup: automatically strip trailing / from HOME env path
update Manifest file
This commit is contained in:
bobwya 2014-06-25 16:34:56 +01:00
parent e796fbd7ac
commit a4d1ce1386
6 changed files with 22 additions and 22 deletions

View File

@ -2,7 +2,7 @@ AUX btsync.service 322 SHA256 125a91a38385878cd5dd09fc3db5f3ec95d070590378966b05
AUX btsync_at.service 331 SHA256 fd04bfcd2e4cc84972aba7593d2dd2d34f17db6c5829b94cf4fdb452ed2fcc3c SHA512 aae76ea1e4f302f48efb7639aee9d7b608c1467e9033a044ddcfb5221de12ddc6483533393de2aec03251a9f2a3bcdcec9e746abb2ba3ad02f0384fea066e1c5 WHIRLPOOL ea6a42507cc0512067cc60a8acb58447747c6ece6ee5bdd73f63be62a75fc69a3d0cb74799a6b31f93837f2b2cd5b32b68aa53178637ba15e99eb41d09220c47 AUX btsync_at.service 331 SHA256 fd04bfcd2e4cc84972aba7593d2dd2d34f17db6c5829b94cf4fdb452ed2fcc3c SHA512 aae76ea1e4f302f48efb7639aee9d7b608c1467e9033a044ddcfb5221de12ddc6483533393de2aec03251a9f2a3bcdcec9e746abb2ba3ad02f0384fea066e1c5 WHIRLPOOL ea6a42507cc0512067cc60a8acb58447747c6ece6ee5bdd73f63be62a75fc69a3d0cb74799a6b31f93837f2b2cd5b32b68aa53178637ba15e99eb41d09220c47
AUX btsync_confd 101 SHA256 4b49669c0900eb34bbe10c28f2c0ea2b55aa390faf321089cfb14fcbc0ff63aa SHA512 53450a2b14f99eb9ef2d6f5116798ce052e6e2360b61ca14aea390136a081226373e9a3d3d50941648050125b84828a530f95fd5faaf46334070f3273f033c72 WHIRLPOOL 3e9c05c1a5043e32d10bb338099a9ddf6e44cfa0a6a7f7bd39d7e20af8af85e092c38d66f3905883145c5e471f00dc6f63a111b4fe6b0b8bb1c77ddfa91c0039 AUX btsync_confd 101 SHA256 4b49669c0900eb34bbe10c28f2c0ea2b55aa390faf321089cfb14fcbc0ff63aa SHA512 53450a2b14f99eb9ef2d6f5116798ce052e6e2360b61ca14aea390136a081226373e9a3d3d50941648050125b84828a530f95fd5faaf46334070f3273f033c72 WHIRLPOOL 3e9c05c1a5043e32d10bb338099a9ddf6e44cfa0a6a7f7bd39d7e20af8af85e092c38d66f3905883145c5e471f00dc6f63a111b4fe6b0b8bb1c77ddfa91c0039
AUX btsync_initd 1148 SHA256 1b512b1ac6c0770c344871852ca0c233fcbe185a72bd361763898554dcf86b3c SHA512 0c120ef168a41b35539c16889915fbb2e4bc01e436af2af94fdb1df83026ae8d0e2bdb579b5778e9325c13871ca0dd9977ba1595eee6ddcc48b4c61a8f06bdf4 WHIRLPOOL f2def307ccc1f40143ebe0482992e9bc865f39856826d72289e02b15f3e46ee982e2c8fb954f48e4b80169e9c67db1924633983612b2f7cb94c8aa8a62c882ea AUX btsync_initd 1148 SHA256 1b512b1ac6c0770c344871852ca0c233fcbe185a72bd361763898554dcf86b3c SHA512 0c120ef168a41b35539c16889915fbb2e4bc01e436af2af94fdb1df83026ae8d0e2bdb579b5778e9325c13871ca0dd9977ba1595eee6ddcc48b4c61a8f06bdf4 WHIRLPOOL f2def307ccc1f40143ebe0482992e9bc865f39856826d72289e02b15f3e46ee982e2c8fb954f48e4b80169e9c67db1924633983612b2f7cb94c8aa8a62c882ea
AUX btsync_setup 1785 SHA256 efccc028ba5e0af59d0acc130a72521d9b276c1cc5d0951381bf48225c02181a SHA512 dd1f33c5cf4bdf86b760e85c2f9e2c7183a320a7dc2a5f621397212162c6edf99b2b3abef9bab71be895ad68aace1330b31a5832e39d0d3b54fd9249ab1024c6 WHIRLPOOL 92b3b010ed50705b92a6a69859046cd77d1b53c5ff66fc77a69edc93db908b5c97791cdbf7a8dcbb811b1ccc8febccc3997ad26dda20a5951e3f4cde73bf1e6e AUX btsync_setup 1792 SHA256 bc561220be96d910bd7f31cc5e87f22d44a93a07ba3a69ec6e92049f99f80ee4 SHA512 81fc9b7ac2b4a8b8b7048e3f86205dc79b73dbe52be645401ac86e3d28bf25c9a0f00b4ee08add2ed9e099a870ce1fa60040846909bf179d1344ca7dca4176d1 WHIRLPOOL e8f5533bdc57b18e6816785f75e2a37a55d9f2031df25dc45de30f7d08ca2bc828ceb541384ad49d3502a9a758bef6bd7e54112976c6ecbb716820e1b11a2baa
AUX btsync_user.service 305 SHA256 4d47e09cebcedd83c8e320f39319cb0c14c78bc5b767f4419a35e29198a52332 SHA512 3f20a21e4da9a5e738fe05fc713cda5a2030cd9b99727365ad7d3fe226b098dbbf416cb022c4c4167cff9d0c9370cacf67bd01ce332f1336f70f38430cf5c0ca WHIRLPOOL e6ed7798484b8ee94c87a387dd9cbba2f0dd6dbb7e8de172ce385f0709c64553aca53816c1955a9c417e884cd72ba04d7b05c503d5a7c6bd3b341763b8854801 AUX btsync_user.service 305 SHA256 4d47e09cebcedd83c8e320f39319cb0c14c78bc5b767f4419a35e29198a52332 SHA512 3f20a21e4da9a5e738fe05fc713cda5a2030cd9b99727365ad7d3fe226b098dbbf416cb022c4c4167cff9d0c9370cacf67bd01ce332f1336f70f38430cf5c0ca WHIRLPOOL e6ed7798484b8ee94c87a387dd9cbba2f0dd6dbb7e8de172ce385f0709c64553aca53816c1955a9c417e884cd72ba04d7b05c503d5a7c6bd3b341763b8854801
DIST btsync_arm-1.1.70.tar.gz 1279220 SHA256 d79b3cf1881fcab95614693569c950d07dd93ffb70cefd901963dec54b75a05b SHA512 321079de894170eafdd8f923f2e1bfd0909904d350b678707f67566ed0afd1ef8af333270b791d6a429774d7e454da4ef064b417be36b338de2e53599e699bd3 WHIRLPOOL f6499199eae078bc7609aa190a61800866dffbc40fcf08f1ae65456ab6ebf36123e5542b3bbff39f0e61d7ae7161d97684ebed3f091145a90e6eb0b789d3db41 DIST btsync_arm-1.1.70.tar.gz 1279220 SHA256 d79b3cf1881fcab95614693569c950d07dd93ffb70cefd901963dec54b75a05b SHA512 321079de894170eafdd8f923f2e1bfd0909904d350b678707f67566ed0afd1ef8af333270b791d6a429774d7e454da4ef064b417be36b338de2e53599e699bd3 WHIRLPOOL f6499199eae078bc7609aa190a61800866dffbc40fcf08f1ae65456ab6ebf36123e5542b3bbff39f0e61d7ae7161d97684ebed3f091145a90e6eb0b789d3db41
DIST btsync_arm-1.1.82.tar.gz 1287272 SHA256 c1502fb7d907caf105c7aa5403f4d575f86aa8ca57817ca90aa4ba1398181a3e SHA512 627e24495f3ee1f48f666a85df8d053f5f7ed51784c23d454410d468773c0d6251211ea188f8235b1cb3c14da20e01a5d4cfdc28b0e16de841a4c805ed2bfbe4 WHIRLPOOL 9d58ff32d68e969a64f2c51cae865b5372f69835b90855de61e927355e794d686760ddef8a651076a6bfb01e4269d15c1e2883f0910f7ac25c3c989097bdf4ed DIST btsync_arm-1.1.82.tar.gz 1287272 SHA256 c1502fb7d907caf105c7aa5403f4d575f86aa8ca57817ca90aa4ba1398181a3e SHA512 627e24495f3ee1f48f666a85df8d053f5f7ed51784c23d454410d468773c0d6251211ea188f8235b1cb3c14da20e01a5d4cfdc28b0e16de841a4c805ed2bfbe4 WHIRLPOOL 9d58ff32d68e969a64f2c51cae865b5372f69835b90855de61e927355e794d686760ddef8a651076a6bfb01e4269d15c1e2883f0910f7ac25c3c989097bdf4ed
@ -20,8 +20,8 @@ DIST btsync_x64-1.1.70.tar.gz 1449204 SHA256 7197ac1a23ff593b1cc6ef124cb2555376a
DIST btsync_x64-1.1.82.tar.gz 1457129 SHA256 3cefbef2af6323dfdb7ccfaad32f7d0c8ed5cb4ebbab58936a479f0c30804bbb SHA512 513048820cdfa02bf90bb731479baf84f7e43947cd3794d3d867f785ed7750b50518b5ed1f5447d78d563eaf25079669293d4da66624c0c8cc501213e1ec8808 WHIRLPOOL 7eab7873aefb8ef704082d782c2df4b3193ce9a0073e725180e3d1c4daa721d1a5110de698cfe07882351ed96ca4a87e84cc3b0ed2e8959d04aed0491a0d08cb DIST btsync_x64-1.1.82.tar.gz 1457129 SHA256 3cefbef2af6323dfdb7ccfaad32f7d0c8ed5cb4ebbab58936a479f0c30804bbb SHA512 513048820cdfa02bf90bb731479baf84f7e43947cd3794d3d867f785ed7750b50518b5ed1f5447d78d563eaf25079669293d4da66624c0c8cc501213e1ec8808 WHIRLPOOL 7eab7873aefb8ef704082d782c2df4b3193ce9a0073e725180e3d1c4daa721d1a5110de698cfe07882351ed96ca4a87e84cc3b0ed2e8959d04aed0491a0d08cb
DIST btsync_x64-1.2.82.tar.gz 2218854 SHA256 2a87c4ec255b3669decb9746d54f52ec7cc3bb019e9ba7f2f9bc9fb215d31933 SHA512 e1b47e13d35080c4f1275bc671581ce13690ca30ca7bbd6ce8d3598e35c79939b9a2d20aab2c7d566d10f603758487d670081e0bec8207039f90eca881d4c526 WHIRLPOOL ea05e594378e8ba6cd4f1f2429830b04cd8e3b4ac763fc2d9fb9f76e9075a59560123ba6112fd1e55c53f2a6b9da37cb737acdcba1881006b9fff2b11b6d1d81 DIST btsync_x64-1.2.82.tar.gz 2218854 SHA256 2a87c4ec255b3669decb9746d54f52ec7cc3bb019e9ba7f2f9bc9fb215d31933 SHA512 e1b47e13d35080c4f1275bc671581ce13690ca30ca7bbd6ce8d3598e35c79939b9a2d20aab2c7d566d10f603758487d670081e0bec8207039f90eca881d4c526 WHIRLPOOL ea05e594378e8ba6cd4f1f2429830b04cd8e3b4ac763fc2d9fb9f76e9075a59560123ba6112fd1e55c53f2a6b9da37cb737acdcba1881006b9fff2b11b6d1d81
DIST btsync_x64-1.3.106.tar.gz 3604626 SHA256 c2f6efb35b420d1f436bfd17841321318ac94d3965b176f1b3bed5a9315cc7f1 SHA512 5aaa27e22f705c8ae862a2833c78ccf9094028d983b13560f6f3f3db83ece51f3c584c6e28fceba2639eab7eca168c1f76351d8c099919c78969ea44cffa7c33 WHIRLPOOL 3eb42538b13f7207ff0e485fb63518577274af1b7d0159455dba7da6b944c6d2ab52f8d3b987ebd1cb12dea01862d01efd9026bbb62d1c9f2fbd0643c1dbfd52 DIST btsync_x64-1.3.106.tar.gz 3604626 SHA256 c2f6efb35b420d1f436bfd17841321318ac94d3965b176f1b3bed5a9315cc7f1 SHA512 5aaa27e22f705c8ae862a2833c78ccf9094028d983b13560f6f3f3db83ece51f3c584c6e28fceba2639eab7eca168c1f76351d8c099919c78969ea44cffa7c33 WHIRLPOOL 3eb42538b13f7207ff0e485fb63518577274af1b7d0159455dba7da6b944c6d2ab52f8d3b987ebd1cb12dea01862d01efd9026bbb62d1c9f2fbd0643c1dbfd52
EBUILD btsync-1.1.70.ebuild 2414 SHA256 cf5955009c2e9faf9fbaa491e1e46c1df50f846788d2f0d74cf422c86bc990f4 SHA512 089342360a5ec3bba706d66a8e83a4575f9f2e27c0d6b89a212ac0a618b306caa2f0b07c99f205476bb4792e7b64fce92cfcaad0fa7009f91cb80ebbeab82fba WHIRLPOOL 836be19b0279101b4676c1e1a20dc843af86f18192f449ba641d6ffe3918b0251f25cad17f471eacc04af2ccad5e5b1d7f66a10e4053fc68eb40ebde6dae5ed7 EBUILD btsync-1.1.70.ebuild 2392 SHA256 e5586fc4b81e276e0c620e0181e0e837d34d8f9d0e091abb47afbdcbf60da23d SHA512 c055e94a381526a127eceb17836627d6d866dd4585671565c0c81d68b5bb269f4503bb9495c01a39c0ac049f7d1e2c5f8a0c692731a191f0bfb625132367e900 WHIRLPOOL 285a22c0eb9d399af00f54c97797a10e20ecbd4c6e78bea7197b343558efb56317c8930a48bab2cd5233f23596c76db3728f4be394897c7e1e0437b1b699fe0c
EBUILD btsync-1.1.82.ebuild 2414 SHA256 cf5955009c2e9faf9fbaa491e1e46c1df50f846788d2f0d74cf422c86bc990f4 SHA512 089342360a5ec3bba706d66a8e83a4575f9f2e27c0d6b89a212ac0a618b306caa2f0b07c99f205476bb4792e7b64fce92cfcaad0fa7009f91cb80ebbeab82fba WHIRLPOOL 836be19b0279101b4676c1e1a20dc843af86f18192f449ba641d6ffe3918b0251f25cad17f471eacc04af2ccad5e5b1d7f66a10e4053fc68eb40ebde6dae5ed7 EBUILD btsync-1.1.82.ebuild 2392 SHA256 e5586fc4b81e276e0c620e0181e0e837d34d8f9d0e091abb47afbdcbf60da23d SHA512 c055e94a381526a127eceb17836627d6d866dd4585671565c0c81d68b5bb269f4503bb9495c01a39c0ac049f7d1e2c5f8a0c692731a191f0bfb625132367e900 WHIRLPOOL 285a22c0eb9d399af00f54c97797a10e20ecbd4c6e78bea7197b343558efb56317c8930a48bab2cd5233f23596c76db3728f4be394897c7e1e0437b1b699fe0c
EBUILD btsync-1.2.82.ebuild 2414 SHA256 cf5955009c2e9faf9fbaa491e1e46c1df50f846788d2f0d74cf422c86bc990f4 SHA512 089342360a5ec3bba706d66a8e83a4575f9f2e27c0d6b89a212ac0a618b306caa2f0b07c99f205476bb4792e7b64fce92cfcaad0fa7009f91cb80ebbeab82fba WHIRLPOOL 836be19b0279101b4676c1e1a20dc843af86f18192f449ba641d6ffe3918b0251f25cad17f471eacc04af2ccad5e5b1d7f66a10e4053fc68eb40ebde6dae5ed7 EBUILD btsync-1.2.82.ebuild 2392 SHA256 e5586fc4b81e276e0c620e0181e0e837d34d8f9d0e091abb47afbdcbf60da23d SHA512 c055e94a381526a127eceb17836627d6d866dd4585671565c0c81d68b5bb269f4503bb9495c01a39c0ac049f7d1e2c5f8a0c692731a191f0bfb625132367e900 WHIRLPOOL 285a22c0eb9d399af00f54c97797a10e20ecbd4c6e78bea7197b343558efb56317c8930a48bab2cd5233f23596c76db3728f4be394897c7e1e0437b1b699fe0c
EBUILD btsync-1.3.106.ebuild 2413 SHA256 419b6e72ce77ed4c877d8b9cbdebd99f361814deef5dbbb8affebf339e992461 SHA512 1c6931e8be0bcc26516bff574f30b8ba9527abe93915dee0c74c4639bb984e0069d48ac6dd2f88002005f04ef9e4c02e8a1a02732cf656a3e8950e862412d549 WHIRLPOOL ce0048c15c11dab1ea1000e85d12abb087f1822258cfb48105543811c53dc56d3e1eab401fcbd0458f2c9146f7f2bb15310b09f63e884c6ee0a29bf338694317 EBUILD btsync-1.3.106.ebuild 2392 SHA256 e5586fc4b81e276e0c620e0181e0e837d34d8f9d0e091abb47afbdcbf60da23d SHA512 c055e94a381526a127eceb17836627d6d866dd4585671565c0c81d68b5bb269f4503bb9495c01a39c0ac049f7d1e2c5f8a0c692731a191f0bfb625132367e900 WHIRLPOOL 285a22c0eb9d399af00f54c97797a10e20ecbd4c6e78bea7197b343558efb56317c8930a48bab2cd5233f23596c76db3728f4be394897c7e1e0437b1b699fe0c
MISC metadata.xml 568 SHA256 b1d3e7890f091cd427ad778d1e5b427c169aa2224cd96186cc8c1b710d2195e5 SHA512 a2b5cb56caea4f5288058d760e12a294ba644cda7e5cb0dc5350bfa077e6f7c09841701aa20e1124d49f554028dee4d8db7c8ae006f8c2ee9682654e1ae92fd9 WHIRLPOOL 061bcd4b8650a7b26e1c0361a3dea5df2470228d87f51c4e5d15bfaccc83f7171acb1818d3b46466980c1b3d35a7eacf37b24ba9f09704297d7244f8af65fe99 MISC metadata.xml 568 SHA256 b1d3e7890f091cd427ad778d1e5b427c169aa2224cd96186cc8c1b710d2195e5 SHA512 a2b5cb56caea4f5288058d760e12a294ba644cda7e5cb0dc5350bfa077e6f7c09841701aa20e1124d49f554028dee4d8db7c8ae006f8c2ee9682654e1ae92fd9 WHIRLPOOL 061bcd4b8650a7b26e1c0361a3dea5df2470228d87f51c4e5d15bfaccc83f7171acb1818d3b46466980c1b3d35a7eacf37b24ba9f09704297d7244f8af65fe99

View File

@ -37,7 +37,7 @@ src_install() {
# systemd support # systemd support
systemd_dounit "${FILESDIR}/${PN}.service" systemd_dounit "${FILESDIR}/${PN}.service"
systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service" systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service"
# systemd_newuserunit "${FILESDIR}/${PN}_user.service" "${PN}.service" #systemd_newuserunit "${FILESDIR}/${PN}_user.service" "${PN}.service"
insinto "$(systemd_get_userunitdir)" insinto "$(systemd_get_userunitdir)"
newins "${FILESDIR}/${PN}_user.service" "${PN}.service" newins "${FILESDIR}/${PN}_user.service" "${PN}.service"
@ -48,7 +48,7 @@ src_install() {
pkg_preinst() { pkg_preinst() {
enewgroup "${PN}" enewgroup "${PN}"
enewuser "${PN}" -1 -1 /dev/null "${PN}" enewuser "${PN}" -1 -1 -1 "${PN}"
dodir "/run/${PN}" dodir "/run/${PN}"
fowners "${PN}":"${PN}" "/run/${PN}" fowners "${PN}":"${PN}" "/run/${PN}"
dodir "/var/lib/${PN}" dodir "/var/lib/${PN}"
@ -65,10 +65,10 @@ einfo " run as a system service as user/group btsync:btsync"
einfo " uses /var/lib/btsync for btsync working data" einfo " uses /var/lib/btsync for btsync working data"
einfo "btsync@<user>.service" einfo "btsync@<user>.service"
einfo " run as a system service but with user privilege" einfo " run as a system service but with user privilege"
einfo " uses /home/<user>/.config/btsync/btsync.conf for btsync working data" einfo " uses /home/<user>/.btsync/btsync.conf for btsync working data"
einfo "btsync_user.service" einfo "btsync_user.service"
einfo " run as a standard user service" einfo " run as a standard user service"
einfo " uses /home/<user>/.config/btsync/btsync.conf for btsync working data" einfo " uses /home/<user>/.btsync/btsync.conf for btsync working data"
einfo "" einfo ""
einfo "Ensure you open the following ports in your firewall:" einfo "Ensure you open the following ports in your firewall:"
einfo " btsync.conf specified sync listening port (UDP/TCP)" einfo " btsync.conf specified sync listening port (UDP/TCP)"

View File

@ -37,7 +37,7 @@ src_install() {
# systemd support # systemd support
systemd_dounit "${FILESDIR}/${PN}.service" systemd_dounit "${FILESDIR}/${PN}.service"
systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service" systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service"
# systemd_newuserunit "${FILESDIR}/${PN}_user.service" "${PN}.service" #systemd_newuserunit "${FILESDIR}/${PN}_user.service" "${PN}.service"
insinto "$(systemd_get_userunitdir)" insinto "$(systemd_get_userunitdir)"
newins "${FILESDIR}/${PN}_user.service" "${PN}.service" newins "${FILESDIR}/${PN}_user.service" "${PN}.service"
@ -48,7 +48,7 @@ src_install() {
pkg_preinst() { pkg_preinst() {
enewgroup "${PN}" enewgroup "${PN}"
enewuser "${PN}" -1 -1 /dev/null "${PN}" enewuser "${PN}" -1 -1 -1 "${PN}"
dodir "/run/${PN}" dodir "/run/${PN}"
fowners "${PN}":"${PN}" "/run/${PN}" fowners "${PN}":"${PN}" "/run/${PN}"
dodir "/var/lib/${PN}" dodir "/var/lib/${PN}"
@ -65,10 +65,10 @@ einfo " run as a system service as user/group btsync:btsync"
einfo " uses /var/lib/btsync for btsync working data" einfo " uses /var/lib/btsync for btsync working data"
einfo "btsync@<user>.service" einfo "btsync@<user>.service"
einfo " run as a system service but with user privilege" einfo " run as a system service but with user privilege"
einfo " uses /home/<user>/.config/btsync/btsync.conf for btsync working data" einfo " uses /home/<user>/.btsync/btsync.conf for btsync working data"
einfo "btsync_user.service" einfo "btsync_user.service"
einfo " run as a standard user service" einfo " run as a standard user service"
einfo " uses /home/<user>/.config/btsync/btsync.conf for btsync working data" einfo " uses /home/<user>/.btsync/btsync.conf for btsync working data"
einfo "" einfo ""
einfo "Ensure you open the following ports in your firewall:" einfo "Ensure you open the following ports in your firewall:"
einfo " btsync.conf specified sync listening port (UDP/TCP)" einfo " btsync.conf specified sync listening port (UDP/TCP)"

View File

@ -37,7 +37,7 @@ src_install() {
# systemd support # systemd support
systemd_dounit "${FILESDIR}/${PN}.service" systemd_dounit "${FILESDIR}/${PN}.service"
systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service" systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service"
# systemd_newuserunit "${FILESDIR}/${PN}_user.service" "${PN}.service" #systemd_newuserunit "${FILESDIR}/${PN}_user.service" "${PN}.service"
insinto "$(systemd_get_userunitdir)" insinto "$(systemd_get_userunitdir)"
newins "${FILESDIR}/${PN}_user.service" "${PN}.service" newins "${FILESDIR}/${PN}_user.service" "${PN}.service"
@ -48,7 +48,7 @@ src_install() {
pkg_preinst() { pkg_preinst() {
enewgroup "${PN}" enewgroup "${PN}"
enewuser "${PN}" -1 -1 /dev/null "${PN}" enewuser "${PN}" -1 -1 -1 "${PN}"
dodir "/run/${PN}" dodir "/run/${PN}"
fowners "${PN}":"${PN}" "/run/${PN}" fowners "${PN}":"${PN}" "/run/${PN}"
dodir "/var/lib/${PN}" dodir "/var/lib/${PN}"
@ -65,10 +65,10 @@ einfo " run as a system service as user/group btsync:btsync"
einfo " uses /var/lib/btsync for btsync working data" einfo " uses /var/lib/btsync for btsync working data"
einfo "btsync@<user>.service" einfo "btsync@<user>.service"
einfo " run as a system service but with user privilege" einfo " run as a system service but with user privilege"
einfo " uses /home/<user>/.config/btsync/btsync.conf for btsync working data" einfo " uses /home/<user>/.btsync/btsync.conf for btsync working data"
einfo "btsync_user.service" einfo "btsync_user.service"
einfo " run as a standard user service" einfo " run as a standard user service"
einfo " uses /home/<user>/.config/btsync/btsync.conf for btsync working data" einfo " uses /home/<user>/.btsync/btsync.conf for btsync working data"
einfo "" einfo ""
einfo "Ensure you open the following ports in your firewall:" einfo "Ensure you open the following ports in your firewall:"
einfo " btsync.conf specified sync listening port (UDP/TCP)" einfo " btsync.conf specified sync listening port (UDP/TCP)"

View File

@ -48,7 +48,7 @@ src_install() {
pkg_preinst() { pkg_preinst() {
enewgroup "${PN}" enewgroup "${PN}"
enewuser "${PN}" -1 -1 /dev/null "${PN}" enewuser "${PN}" -1 -1 -1 "${PN}"
dodir "/run/${PN}" dodir "/run/${PN}"
fowners "${PN}":"${PN}" "/run/${PN}" fowners "${PN}":"${PN}" "/run/${PN}"
dodir "/var/lib/${PN}" dodir "/var/lib/${PN}"
@ -65,10 +65,10 @@ einfo " run as a system service as user/group btsync:btsync"
einfo " uses /var/lib/btsync for btsync working data" einfo " uses /var/lib/btsync for btsync working data"
einfo "btsync@<user>.service" einfo "btsync@<user>.service"
einfo " run as a system service but with user privilege" einfo " run as a system service but with user privilege"
einfo " uses /home/<user>/.config/btsync/btsync.conf for btsync working data" einfo " uses /home/<user>/.btsync/btsync.conf for btsync working data"
einfo "btsync_user.service" einfo "btsync_user.service"
einfo " run as a standard user service" einfo " run as a standard user service"
einfo " uses /home/<user>/.config/btsync/btsync.conf for btsync working data" einfo " uses /home/<user>/.btsync/btsync.conf for btsync working data"
einfo "" einfo ""
einfo "Ensure you open the following ports in your firewall:" einfo "Ensure you open the following ports in your firewall:"
einfo " btsync.conf specified sync listening port (UDP/TCP)" einfo " btsync.conf specified sync listening port (UDP/TCP)"

View File

@ -22,9 +22,9 @@ BTSYNC_PATH="/opt/${PN}"
if [[ $EUID -eq 0 ]]; then if [[ $EUID -eq 0 ]]; then
STORAGE_PATH="/var/lib/${PN}" STORAGE_PATH="/var/lib/${PN}"
CONF_FILE="/etc/${PN}.conf" CONF_FILE="/etc/${PN}.conf"
PID_FILE="/var/run/${PN}.pid" PID_FILE="/run/${PN}/${PN}.pid"
else else
STORAGE_PATH="$HOME.${PN}" STORAGE_PATH="${HOME%/}/.${PN}"
CONF_FILE="${STORAGE_PATH}/${PN}.conf" CONF_FILE="${STORAGE_PATH}/${PN}.conf"
PID_FILE="${STORAGE_PATH}/${PN}.pid" PID_FILE="${STORAGE_PATH}/${PN}.pid"
mkdir -p "${STORAGE_PATH}" mkdir -p "${STORAGE_PATH}"