summaryrefslogtreecommitdiff
path: root/net-misc/stargazer
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-02-16 12:59:29 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-02-16 12:59:29 +0000
commit79599515788b85b18aa655e7b7f8cc05c1bbddd8 (patch)
treeade7cb031f363fad64c77139dea7aa3d81908537 /net-misc/stargazer
parent6bc2e4d7c5906e46a8f275a876ead6ec41aca5bb (diff)
gentoo resync : 16.02.1018
Diffstat (limited to 'net-misc/stargazer')
-rw-r--r--net-misc/stargazer/Manifest28
-rw-r--r--net-misc/stargazer/files/patches/stg-2.408-build-upstream.patch28
-rw-r--r--net-misc/stargazer/files/patches/stg-2.408-build.patch28
-rw-r--r--net-misc/stargazer/files/patches/stg-2.408-correct-paths.patch32
-rw-r--r--net-misc/stargazer/files/patches/stg-2.408-makefile-firebird-upstream.patch4
-rw-r--r--net-misc/stargazer/files/patches/stg-2.408-makefile.patch48
-rw-r--r--net-misc/stargazer/files/patches/stg-2.408-on-upstream.patch20
-rw-r--r--net-misc/stargazer/files/patches/stg-2.408-radius-upstream.patch4
-rw-r--r--net-misc/stargazer/files/patches/stg-2.408-rscriptd-upstream.patch4
-rw-r--r--net-misc/stargazer/files/patches/stg-2.408-rscriptd.conf-upstream.patch4
-rw-r--r--net-misc/stargazer/files/patches/stg-2.408-sgauth.conf-upstream.patch4
-rw-r--r--net-misc/stargazer/files/patches/stg-2.408-sgconv-upstream.patch12
-rw-r--r--net-misc/stargazer/files/patches/stg-2.408-static-libs.patch4
-rw-r--r--net-misc/stargazer/metadata.xml94
-rw-r--r--net-misc/stargazer/stargazer-2.408-r1.ebuild538
-rw-r--r--net-misc/stargazer/stargazer-2.408.ebuild558
16 files changed, 694 insertions, 716 deletions
diff --git a/net-misc/stargazer/Manifest b/net-misc/stargazer/Manifest
index 065e57d23158..a57146e32206 100644
--- a/net-misc/stargazer/Manifest
+++ b/net-misc/stargazer/Manifest
@@ -5,22 +5,22 @@ AUX mans/sgconf.1 2870 BLAKE2B 91049e1706bb9667ea294fe986c1fcef1669a8b7a8221b7ae
AUX mans/sgconf_xml.1 1527 BLAKE2B 491b5d4ef125ceb6c7b5e8d3e956f024705fd102ac4952b056c837e69afabfaa45eef4448c677b7a03ea739b00eadbb318c1c3815560bdb4e91b5a3167d287d3 SHA512 db79a12955865955022a1cdeef1c6496f9c4232b1cac972f3c8bfdf7aff503f206d3b177961357bcaa14a60426b06bd49ffe8601fc57bbf2c00dd2bea890da75
AUX mans/sgconv.1 892 BLAKE2B ebf2f219202967b22b1c105cef69d2eb951d5fef911187a217c9fa35e1600154e4ac8bb8a003b9efe381b9840d7d58afc19fde22d16291063072c5b33a2ed939 SHA512 de6ff8c3569a5aba6690539a2c523833200e732777c1b7e9325b4e518ca1cb72906325fb4ea58c2abd0ce80bb0bf5c55f564cc31cbd122c93d8528d2e3a033e8
AUX mans/stargazer.8 1394 BLAKE2B 6f7964d23f752b1ab8366d3277f5d7a1cff97d894e4fb34e07ccac8000142e6c9a1327dcf3e5e9f631b18a83ff6c2dd60313c910153198e525c82fd63297dd9b SHA512 6c69970f0dfee31f1a9d68ee784a54f169b2ba272a10bb3f3be139407d374fd8d8d5e9e37c4d1e3091c85c22cd84ed7235894cd5f678614017111b6175e08e89
-AUX patches/stg-2.408-build-upstream.patch 4759 BLAKE2B e005bc1a6099737664375462c65fc37f975d768d9e6a66b603771bebab93dec230bbed16ca8056a549f48431aef60f55d5c5fa1b366c9ffe828836a90b143178 SHA512 76cd10b98db0c70f989b5f498a13c7baacac3e2a0b6bc0b1449d34789a94317b2576bfb96d48ee567480ce98783c758920a7f3004990f487592fc8a7e8bcd7df
-AUX patches/stg-2.408-build.patch 4220 BLAKE2B c59e87b3936e099f9685ce08943dfab8ced13020d4f30dd5e92ec083c7b6d564790b481301eb1e38022483b85b9a54bf58ebaf79e81bb6becee66c33fd23973b SHA512 98b3824b379aa8c9febf4e0907135ad072844cfea63541e3384e99cd47f6d0a9457e376d1658fb146196ea6ee397dcf7e715abb9bb1a279d209866735974448f
-AUX patches/stg-2.408-correct-paths.patch 6489 BLAKE2B 80efb968f432d4e25aaaf4b9fc1c0c0dbfdb4dc4110e03b75356f924762abe93a6dde411c6344f56ecc267c5f72da6b4044a3c804720ddcebab73557999c37ff SHA512 e400b4d5ba4bb7305557aaba29fae7415d8bde0343a695ac7e979839549b843cf90a0d19e598f050d08282d717ed3b46e4e5572d4be6b295ce88e962ac6966d3
+AUX patches/stg-2.408-build-upstream.patch 4787 BLAKE2B 791316c9477abc5e5f165e5bbf7fe89a444aecbad06b37447fbb6567df16dd3f9e0bcbca1466f8a4047b4698cf0ec933c7bc806d5e70fe5add09222201e6141c SHA512 d3db525bc2526461fe898d4db9c8547db6c95ced8cfce2ac87001884293eb203f001c3ea39004073bbd1a683ac413d8e0c70c5af76b94f7b23c8439a0cba934e
+AUX patches/stg-2.408-build.patch 4248 BLAKE2B 97d9a9e06fd2d41423cbdd315b9a192b08de2c8fc95335cb55d08f9b742da3492f21087beb1c3a45b37a6ae6ed354190146dd2b5679448dc51bfdda357ee8690 SHA512 b9d24ffc1e1c8efe390c2e499220b93971da22506668f9610a95ce47cb77f103653b0820599db2b79790a2d6304bfd7d9f3e1251785eaeee6fcf005fb479b6a4
+AUX patches/stg-2.408-correct-paths.patch 6521 BLAKE2B e7f5ce0f30fde1eeb7f95e06e51bf0db2b42731b3d7def7f6af93dc2acaa8b381fed255eee24ec2542529c7495dc2b62397955ee2aa4f02e9a71eab21f59f123 SHA512 a94f7793cd355517dc2894697109b64080e9bf5b7a982f5fce3da8f92ed6089fad8144d506c318a9611c630655d262a8408bca41f330fb62b9d01e191d9270a0
AUX patches/stg-2.408-fix-crash-on-stop.patch 6125 BLAKE2B c8f8070e73586548676345f87038643621d7ece755364d56de00ac6d7a3206ac6db43824d295bfc0681caf32207676ae80b3a911fab725619ff914bdf0387354 SHA512 efa0345eafaffc8fd3efa78dfe511987b4fc8990446339b797f3ffaf0dad2f44b061baba390ee4f22232bbb8a8cd785a7ea5062377afb92c4287dbde9df7523b
AUX patches/stg-2.408-makefile-build-upstream.patch 11266 BLAKE2B 8a10a1ba9373ab6fad78cf2391ebf9511cc4d25b4f4fc0db5bff5e051f67c7040f2b61ea901e504e6a4e1549197221cbd4b7d1a36c7f376e2aaa6c9715d75336 SHA512 722be9686fdcd1b979d3a303c088c6b1567fe6288609696a47cf2677280244fee2345c6f31b0caecd73d7bc4a423e0dfd2cd73f53a795137adc18bfc6ec97d3e
-AUX patches/stg-2.408-makefile-firebird-upstream.patch 396 BLAKE2B 25e1565b2a85211763d342f347638b665404db8ce0883e05db7b269f2534a3f202347f08d91ae9a1bde683c435ee2969af246be408ef6425c155b1159c0a7a70 SHA512 c7a3cf5a4f9ace4aa7293c56530207827b390aed6aee7cafd38ca50502c47ade22020dbdc096dea3971551f0507910f8d5051dee7ba4d7fc14366cb2f765de76
-AUX patches/stg-2.408-makefile.patch 8499 BLAKE2B 851c8a686df81027cf35424dab4c0e8f0bcd22a93d287c8dcd90a727b3845e5d6ae2fb20373383fbac7293df8061225fcc742ee21b1a999a6c56ac98f052f6b1 SHA512 5d4ad2104710d3c6a7bd8bc48d8c71c20b68f14aff7017606a028d55003344832d47d9e28853b595581863b4128c312e971cdea260515269d9c8cf1e693dacab
-AUX patches/stg-2.408-on-upstream.patch 5160 BLAKE2B 4ba7913f2feb53667783a73e4c608a101910ec858d4e755e24f2898f1bbb4735714ced247b9d5ec531fc1686bed52b235984a435660570c1af8e4ea3960d5245 SHA512 9b83b8e744b246c391abbaad49226b5ccade1395ce2d6eb8573bd13e3e3d1dcdb4b4611a0625ad5a426d9859b09913c6af050161c739a7a63c24bb7ce71f406b
-AUX patches/stg-2.408-radius-upstream.patch 861 BLAKE2B b22f61d03debaa2b9ce1a2a9668f8e6324627a17dcacb84054ac50f43b299e144e1d03a8ed03bbc4b51c50e924e7f996c5ccf54b047814cdb66625937d995d0b SHA512 2c59de06ede39e6987d1235fd423e9d42a2d2a0cdcbe291b28c567d1bcd34243753243faedab8e9cf987e7bbb1dabbc2afc2d7757fd50f0f4170c724f16dd4ef
-AUX patches/stg-2.408-rscriptd-upstream.patch 1103 BLAKE2B fabe5da8b7618b1b22d3f407c70a2f1b04d71b30b47e048a6e77f07315a34d562f3fe6382bf78dd738225ad061637257c1b833f2139751ad4bea8d9777c01d0c SHA512 397240006551501ec3b8829e967a9191e813f1299abd7108d8effc9c11e9ac048a091f77961c348a7878ffe475af3a612cf82aa9d804d3206411b610191bbde9
-AUX patches/stg-2.408-rscriptd.conf-upstream.patch 2515 BLAKE2B 6be62ae8d150f2094eb5c90bf3b5b3d2a1cf3442c14453749cb7c9483772f8d141ed71ac45c120018c76562838deefb2801eb89550bf3b3c5c1bc43396601f21 SHA512 4b2da01d05d07e62bc9c5d002c4a7bc190958e59236c03dde49238ac4e23dfc8e4e67a323ac12c2f89872285506614d3bb127cf3f4873df095c1579f441aa73c
-AUX patches/stg-2.408-sgauth.conf-upstream.patch 2382 BLAKE2B 10820a1254294169305900650a617da14d58f1674606619308925517f829068f4faabfe6b6b1421c087a0bb6662b45427594e27a4649d44c0e1bf9e6c4ca271b SHA512 2875f9b719a2058d435220016bb83b2b30fba9c927b9d1f06b5bfd5149fad213e312106e8de3c1cdedc9c3dd8178d6a1944327f0f9635a57cee329a623946d39
-AUX patches/stg-2.408-sgconv-upstream.patch 1542 BLAKE2B 5fe304dfdc7b91d1513d03d0a7dd14d2672ac6ab45a362018da2c6e7508952c7e50e6e993a060986d3b93826ce18276cccc6029ab498f735b7c7b926fb370d86 SHA512 bc25e9b682ae33ceec30edef35c62e90fc24cdd8c891397193c2aa041557f7e7071abe998ec77291401953899da4a817a269e825be5b5cb552e83c34ac026d70
-AUX patches/stg-2.408-static-libs.patch 194 BLAKE2B fc6d01a0125b2c26712a1741e7d240dd82da50ab48ff9e7098baacc14c2333d308decc77dce5a57f29df0f75d1bda78c5c7b60bd60a421b8cb443df3fe23dca4 SHA512 f6961a429bf4c23ec17935a8568acfccdcecb7e646aa6a607177cbf95fd20b6169d17713e8a0649ff164eb5b34c11bebe94cd252ccdac8577025859aa2c0fca9
+AUX patches/stg-2.408-makefile-firebird-upstream.patch 400 BLAKE2B 51bbe2e224b6610f8261b12254ea224bd5c41421a993430af6093312588063a9b8d9d98b21d8bc90d713c2716374d7955491cf52aa701be7c5d6aa0dc5013dfa SHA512 cb8a2331465445acb103efde604d37589b1da232408a58c58bc19db19fd4afc76abb01ba4ae8dd92af79ecdc85dbcc9f1e9441a9eaa9759659d1905a4df76969
+AUX patches/stg-2.408-makefile.patch 8547 BLAKE2B d6efac0a7902030e935d0644713bb2d216b766df2dc594f0a2fb19a4bef6a8345fb10ea75727b414f276339dc9c19bc65c8c2415705fc00aac96a241600982fa SHA512 8f8a27eca62b62d80fc22bfd5c192600757faa3780a1c75eeeb966ff5c71bd13ed494bf8ef888b0676f1842a9511f17057cf856cec21df19764c7b7369557ce0
+AUX patches/stg-2.408-on-upstream.patch 5180 BLAKE2B bd5fd3953dcf07e725492659e18b19b609e32acaa2e16f57357957ef8f6ece7f4f1c7e20f815cc9052048801106cbb15f491356592b98a6dc64d31695c5a2b5b SHA512 9c95821caec5bdb8f18c02d2f19f5b2cac563bbfc5f1cf0b65b2d1ac9593d85598efb6d9e8e57a9a80de843e89056b2344d510f95b79d960b72ebd95f47a0075
+AUX patches/stg-2.408-radius-upstream.patch 865 BLAKE2B 68fd33b73026543a4bbbc6a530b2262d051e0e30762520dc0efb0c673671ffe9e1493f57f92b08e5f1fa4704cad0f9d7b0dda1672f179c39cf504555f6083c6d SHA512 ebc9bc785019c871a806eb7c4e694876b08d70be87eaeeb74f21f6450264a4603d6fa6262bd1f9e8e0e4a6fa901621b927b3c0849bc5f6f403c04cf33f343070
+AUX patches/stg-2.408-rscriptd-upstream.patch 1107 BLAKE2B 99ca090bdc99de24d32aa9c2498237b8077e6b4c639a0e5efcd26c0af23455047025974aa77ade876eddd1a55827b35dbf320c5615c9e4f3c09e5259b7942865 SHA512 f90331a0c0edb14e8bd2789008059b2c54d763c326485334cefc5d97ef9373ce02e0b61b43f6099ca8c29e9c3dc6d8ef1468f0eba1d0d462bbe2ba00f3cc5074
+AUX patches/stg-2.408-rscriptd.conf-upstream.patch 2519 BLAKE2B 145112218ec4a8e51e58778a416a9963ddfa6fd0ef30fed04ef422b783953902b53aefb1fc0890e504cdada1490924e89a58353a57c713e67130384a8618e690 SHA512 e095d89605568b1d034920e15298b3fb5fc4490afe4aa7c0cf67865352b5e54d69c362471004013d82bcb6a2e39e99b48482753fc897b1609e2caf3ce16d38b7
+AUX patches/stg-2.408-sgauth.conf-upstream.patch 2386 BLAKE2B e790468c02d02363a186e2a89f4a14bb396f56069666ce2d37452749156ae41e4c8877597f14970f314f849aa7dbe1f4908dfd2e1dab15b065493575126d4024 SHA512 bed8a3ec9dc0ff8f0d88bf3503f34fd7ec8fb6cfc1e0dace9048ee50b3a9c032c36fde1785ff05ca83256e9d6ae9af6ad2b391bab23e87b3586353d123a02ba3
+AUX patches/stg-2.408-sgconv-upstream.patch 1554 BLAKE2B 1956c6990af336243472c2cdf876d31ab2e88b854ae8a1e43517bc8e0729ff6516275ade458defa4a27a8f093bd21797ac5cb2c213123c3170bfafa05dce6c03 SHA512 91bf0ae2df31ad3f9b9b6610ebbc274ccdc806656101136c78a9a6a13ab835f23b5df61b1a8a50e4b2ffcc2b121da40d5e72fb53cb77534de10dca10c2d1a716
+AUX patches/stg-2.408-static-libs.patch 198 BLAKE2B 2ad854cd7ac7f9bf8a01aa8cfbb896efc31d526ee23f6e3857fd4c0ea1e17a4acff2e59bb2c52ac7130eec477496572d4cf2693657356ecc1deea265fa1ac36a SHA512 4766d1c8c1e48776c1d5e39736ecdaf53bb5030721f4799867a675c47d2a9d4f81e0c517a8a7aef330fff9a8d063835774f186e96e29661a99e1e330b759c8ca
AUX rscriptd 453 BLAKE2B fb7d771ad0c29223d8a24196da05c05faf852291530fef644b60bf83893e3d038628a1ca7db92d3f3b8144cf44ccc7aa694686c77e6514867048841f1f57d61f SHA512 21cb21a5a14901f3b370f2cedb6ede9414c1080d3d4e073ed048f005f40622179cd91e8cf80f609f0a7b5cacecff5f15913a5cf954dfff56ad036649f4a0a48f
AUX sgauth 462 BLAKE2B 9aeb1dfe4ce08f7626d6275813e8a3b2f3023ebc11b10841c7a6b01ff9110ed1193e3b2b367c7c1056c473d41f481c93ad25f4252f774fd7df5392af710255bd SHA512 a2d6ba8c2200095072a73342fab4cb5706470d52d9dc6a57f023b16dc895957d4377bc089a4a3cd57126bc9628020c2c1bb60347758e53576eccbc0c854c2364
DIST stg-2.408.tar.gz 5100291 BLAKE2B c5e50d5607f7c5253dcbb9d48fffdd55bf44829bfc3dba1e45227fa819d2592212366baff6b19dce70ef7a565f8b03e8f580204225441b12653de6271a030554 SHA512 200e08cfd629dbacda31ffd3134c2908a1ad58604421cc288ad0ec1bdcd60fe021d51fed50fdc2517bb7c2b61ef23b0b9c71a606babd09bc7804cb899e0b7f75
-EBUILD stargazer-2.408.ebuild 19983 BLAKE2B f6b68aa085104310f82c6461763ae12b4d891f1355c151a11cd3e6e807e2b9a26c1c4f7842a443f436afd620aef4c8cccd33dad6c851b0b2e45a6dc060269795 SHA512 a385d94e92c6407230dbe57f23830f19561561625d97d5c1c0d3c8db533693aa1241b84c509e4bab25d83bc3965a2dbbaa7e862a6a5eccb45eeb6a9fd705fc70
-MISC metadata.xml 4383 BLAKE2B 0e840802cac1aa54489d9bb240268747c5999907589493a3d19f9530746da10800b20b3229a1e58097e649a8b095bec2e384faa6f17a9850572ca45372838b9f SHA512 7dd2c022fd3b70e063ed9d513e1a148183be4a288ba22ef5b081f3fac35847d8d38f64262ff1ac2a274e24e2ef6331cadb3c8a364366657331911a03f5163de1
+EBUILD stargazer-2.408-r1.ebuild 17363 BLAKE2B 46d7f71b58eb45e764684fd4e4653b4827024090543a91225d4bb88d7739d2f4238c0d4ba13ab76cdbf23c25787c79203672e67a41fac73c5ab55917d2ffc0a9 SHA512 095507ed18283cc13121c11910dd13fc9a344e540d9cb9ca7eaa10a5a8e67c67ff98aabbbe816f2ca7d9fe6881da0f2a151b7d28abeab81e0773069a926918de
+MISC metadata.xml 4163 BLAKE2B 8b56f499cd2f996cef1d15ff7f01dffaa6f76577ac437b7e040a5b8c49272b2eed8f680d6f2ed8c9e2512326971aa5e5a66b06f408341af7add6caa076c74e9f SHA512 60e4a6fc5304feb38c6ccc5fa3dc69df9c600289a65779d6d957b0252262a371c1cca02ae51f4538c7d4d006d0b03040a18a478011a31656562d2e36fce668fa
diff --git a/net-misc/stargazer/files/patches/stg-2.408-build-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-build-upstream.patch
index c8b73d85a63a..6f2c43e74988 100644
--- a/net-misc/stargazer/files/patches/stg-2.408-build-upstream.patch
+++ b/net-misc/stargazer/files/patches/stg-2.408-build-upstream.patch
@@ -1,5 +1,5 @@
---- projects/rlm_stg/build.org 2013-01-15 15:25:59.000000000 +0200
-+++ projects/rlm_stg/build 2013-01-15 19:48:13.000000000 +0200
+--- a/projects/rlm_stg/build.org 2013-01-15 15:25:59.000000000 +0200
++++ b/projects/rlm_stg/build 2013-01-15 19:48:13.000000000 +0200
@@ -16,21 +16,15 @@
DIR_MODE=0755
OWNER=root
@@ -30,8 +30,8 @@
fi
CXXFLAGS="$CXXFLAGS -I/usr/local/include"
---- projects/rscriptd/build.org 2013-01-15 18:28:32.000000000 +0200
-+++ projects/rscriptd/build 2013-01-15 18:38:13.000000000 +0200
+--- a/projects/rscriptd/build.org 2013-01-15 18:28:32.000000000 +0200
++++ b/projects/rscriptd/build 2013-01-15 18:38:13.000000000 +0200
@@ -16,21 +16,15 @@
DIR_MODE=0755
OWNER=root
@@ -61,8 +61,8 @@
fi
CXXFLAGS="$CXXFLAGS -I/usr/local/include"
---- projects/sgauth/build.org 2013-01-15 18:29:20.000000000 +0200
-+++ projects/sgauth/build 2013-01-15 18:36:33.000000000 +0200
+--- a/projects/sgauth/build.org 2013-01-15 18:29:20.000000000 +0200
++++ b/projects/sgauth/build 2013-01-15 18:36:33.000000000 +0200
@@ -16,21 +16,15 @@
DIR_MODE=0755
OWNER=root
@@ -92,8 +92,8 @@
fi
CXXFLAGS="$CXXFLAGS -I/usr/local/include"
---- projects/sgconf/build.org 2013-01-15 18:29:59.000000000 +0200
-+++ projects/sgconf/build 2013-01-15 18:35:41.000000000 +0200
+--- a/projects/sgconf/build.org 2013-01-15 18:29:59.000000000 +0200
++++ b/projects/sgconf/build 2013-01-15 18:35:41.000000000 +0200
@@ -16,21 +16,15 @@
DIR_MODE=0755
OWNER=root
@@ -123,8 +123,8 @@
fi
CXXFLAGS="$CXXFLAGS -I/usr/local/include"
---- projects/sgconf_xml/build.org 2013-01-15 18:30:26.000000000 +0200
-+++ projects/sgconf_xml/build 2013-01-15 18:34:53.000000000 +0200
+--- a/projects/sgconf_xml/build.org 2013-01-15 18:30:26.000000000 +0200
++++ b/projects/sgconf_xml/build 2013-01-15 18:34:53.000000000 +0200
@@ -16,21 +16,15 @@
DIR_MODE=0755
OWNER=root
@@ -154,8 +154,8 @@
fi
CXXFLAGS="$CXXFLAGS -I/usr/local/include"
---- projects/sgconv/build.org 2013-01-15 18:31:01.000000000 +0200
-+++ projects/sgconv/build 2013-01-15 18:32:46.000000000 +0200
+--- a/projects/sgconv/build.org 2013-01-15 18:31:01.000000000 +0200
++++ b/projects/sgconv/build 2013-01-15 18:32:46.000000000 +0200
@@ -16,11 +16,20 @@
DIR_MODE=0755
OWNER=root
@@ -180,8 +180,8 @@
if [ "$sys" = "Linux" ]
then
---- projects/stargazer/build.org 2013-01-15 19:48:54.000000000 +0200
-+++ projects/stargazer/build 2013-01-15 19:51:13.000000000 +0200
+--- a/projects/stargazer/build.org 2013-01-15 19:48:54.000000000 +0200
++++ b/projects/stargazer/build 2013-01-15 19:51:13.000000000 +0200
@@ -35,23 +35,15 @@
XMLRPC_FEATURES="c++2 abyss-server"
diff --git a/net-misc/stargazer/files/patches/stg-2.408-build.patch b/net-misc/stargazer/files/patches/stg-2.408-build.patch
index 380b4cbe91f2..9d42a0487d88 100644
--- a/net-misc/stargazer/files/patches/stg-2.408-build.patch
+++ b/net-misc/stargazer/files/patches/stg-2.408-build.patch
@@ -1,5 +1,5 @@
---- projects/rlm_stg/configure.org 2013-01-18 18:06:17.000000000 +0200
-+++ projects/rlm_stg/configure 2013-01-18 18:07:18.000000000 +0200
+--- a/projects/rlm_stg/configure.org 2013-01-18 18:06:17.000000000 +0200
++++ b/projects/rlm_stg/configure 2013-01-18 18:07:18.000000000 +0200
@@ -34,6 +34,7 @@
then
OS=linux
@@ -24,8 +24,8 @@
-
+echo "ETC_DIR=$ETC_DIR" >> $CONFFILE
\ No newline at end of file
---- projects/rscriptd/configure.org 2013-01-18 18:07:28.000000000 +0200
-+++ projects/rscriptd/configure 2013-01-18 18:08:02.000000000 +0200
+--- a/projects/rscriptd/configure.org 2013-01-18 18:07:28.000000000 +0200
++++ b/projects/rscriptd/configure 2013-01-18 18:08:02.000000000 +0200
@@ -34,6 +34,7 @@
then
OS=linux
@@ -51,8 +51,8 @@
-
+echo "ETC_DIR=$ETC_DIR" >> $CONFFILE
\ No newline at end of file
---- projects/sgauth/configure.org 2013-01-18 18:08:10.000000000 +0200
-+++ projects/sgauth/configure 2013-01-18 18:08:38.000000000 +0200
+--- a/projects/sgauth/configure.org 2013-01-18 18:08:10.000000000 +0200
++++ b/projects/sgauth/configure 2013-01-18 18:08:38.000000000 +0200
@@ -34,6 +34,7 @@
then
OS=linux
@@ -77,8 +77,8 @@
-
+echo "ETC_DIR=$ETC_DIR" >> $CONFFILE
\ No newline at end of file
---- projects/sgconf/configure.org 2013-01-18 18:08:46.000000000 +0200
-+++ projects/sgconf/configure 2013-01-18 18:09:44.000000000 +0200
+--- a/projects/sgconf/configure.org 2013-01-18 18:08:46.000000000 +0200
++++ b/projects/sgconf/configure 2013-01-18 18:09:44.000000000 +0200
@@ -34,6 +34,7 @@
then
OS=linux
@@ -104,8 +104,8 @@
-
+echo "ETC_DIR=$ETC_DIR" >> $CONFFILE
\ No newline at end of file
---- projects/sgconf_xml/configure.org 2013-01-18 18:09:54.000000000 +0200
-+++ projects/sgconf_xml/configure 2013-01-18 18:10:23.000000000 +0200
+--- a/projects/sgconf_xml/configure.org 2013-01-18 18:09:54.000000000 +0200
++++ b/projects/sgconf_xml/configure 2013-01-18 18:10:23.000000000 +0200
@@ -34,6 +34,7 @@
then
OS=linux
@@ -131,8 +131,8 @@
-
+echo "ETC_DIR=$ETC_DIR" >> $CONFFILE
\ No newline at end of file
---- projects/sgconv/configure.org 2013-01-18 18:10:30.000000000 +0200
-+++ projects/sgconv/configure 2013-01-18 18:11:09.000000000 +0200
+--- a/projects/sgconv/configure.org 2013-01-18 18:10:30.000000000 +0200
++++ b/projects/sgconv/configure 2013-01-18 18:11:09.000000000 +0200
@@ -35,6 +35,7 @@
then
OS=linux
@@ -161,8 +161,8 @@
-
+mkdir -p ../stargazer/modules
\ No newline at end of file
---- projects/stargazer/configure.org 2013-01-18 18:11:15.000000000 +0200
-+++ projects/stargazer/configure 2013-01-18 18:11:40.000000000 +0200
+--- a/projects/stargazer/configure.org 2013-01-18 18:11:15.000000000 +0200
++++ b/projects/stargazer/configure 2013-01-18 18:11:40.000000000 +0200
@@ -404,11 +404,4 @@
echo "VAR_DIR=$VAR_DIR" >> $CONFFILE
echo "ETC_DIR=$ETC_DIR" >> $CONFFILE
diff --git a/net-misc/stargazer/files/patches/stg-2.408-correct-paths.patch b/net-misc/stargazer/files/patches/stg-2.408-correct-paths.patch
index 82698af5b6f7..520d635d69c6 100644
--- a/net-misc/stargazer/files/patches/stg-2.408-correct-paths.patch
+++ b/net-misc/stargazer/files/patches/stg-2.408-correct-paths.patch
@@ -1,5 +1,5 @@
---- projects/rscriptd/rscriptd.conf.org 2013-01-08 18:19:34.000000000 +0200
-+++ projects/rscriptd/rscriptd.conf 2013-01-08 18:20:52.000000000 +0200
+--- a/projects/rscriptd/rscriptd.conf.org 2013-01-08 18:19:34.000000000 +0200
++++ b/projects/rscriptd/rscriptd.conf 2013-01-08 18:20:52.000000000 +0200
@@ -6,7 +6,7 @@
# Parameter: optional
# Value: file path
@@ -34,8 +34,8 @@
################################################################################
\ No newline at end of file
---- projects/sgconv/sgconv.conf.org 2012-12-18 21:56:33.578221904 +0200
-+++ projects/sgconv/sgconv.conf 2012-12-18 21:58:22.355217059 +0200
+--- a/projects/sgconv/sgconv.conf.org 2012-12-18 21:56:33.578221904 +0200
++++ b/projects/sgconv/sgconv.conf 2012-12-18 21:58:22.355217059 +0200
@@ -18,27 +18,27 @@
# Working server directory, provides data on tariffs, users, administrators.
# Parameter: required
@@ -80,8 +80,8 @@
# Database username
# Parameter: required
---- projects/stargazer/inst/linux/etc/stargazer/stargazer.conf.org 2012-12-30 14:35:22.000000000 +0200
-+++ projects/stargazer/inst/linux/etc/stargazer/stargazer.conf 2012-12-30 14:36:37.000000000 +0200
+--- a/projects/stargazer/inst/linux/etc/stargazer/stargazer.conf.org 2012-12-30 14:35:22.000000000 +0200
++++ b/projects/stargazer/inst/linux/etc/stargazer/stargazer.conf 2012-12-30 14:36:37.000000000 +0200
@@ -6,7 +6,7 @@
# Parameter: required
# Value: file path
@@ -100,8 +100,8 @@
# Defines message maximum lifetime
# Note: 0 - unlimited
---- projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf.org 2012-12-25 14:03:49.000000000 +0200
-+++ projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf 2012-12-25 14:04:00.000000000 +0200
+--- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf.org 2012-12-25 14:03:49.000000000 +0200
++++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf 2012-12-25 14:04:00.000000000 +0200
@@ -16,7 +16,7 @@
# Parametr: required
# Values: filename
@@ -111,8 +111,8 @@
# The password to encrypt packets between the stg-server and remote server
# Parameter: required
---- projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_files.conf.org 2012-12-25 13:31:01.000000000 +0200
-+++ projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_files.conf 2012-12-25 13:31:43.000000000 +0200
+--- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_files.conf.org 2012-12-25 13:31:01.000000000 +0200
++++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_files.conf 2012-12-25 13:31:43.000000000 +0200
@@ -5,27 +5,27 @@
# Working server directory, provides data on tariffs, users, administrators.
# Parameter: required
@@ -148,8 +148,8 @@
UserLogMode = 640
</StoreModule>
---- projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_firebird.conf.org 2012-12-25 13:39:00.000000000 +0200
-+++ projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_firebird.conf 2012-12-25 13:39:28.000000000 +0200
+--- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_firebird.conf.org 2012-12-25 13:39:00.000000000 +0200
++++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_firebird.conf 2012-12-25 13:39:28.000000000 +0200
@@ -9,7 +9,7 @@
# Parameter: required
# Value: file path
@@ -159,8 +159,8 @@
# Database username
# Parameter: required
---- projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp.org 2012-12-31 11:08:26.000000000 +0200
-+++ projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp 2012-12-31 11:08:41.000000000 +0200
+--- a/projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp.org 2012-12-31 11:08:26.000000000 +0200
++++ b/projects/stargazer/plugins/configuration/rpcconfig/rpcconfig.cpp 2012-12-31 11:08:41.000000000 +0200
@@ -169,7 +169,7 @@
rpcServer = new xmlrpc_c::serverAbyss(
xmlrpc_c::serverAbyss::constrOpt()
@@ -170,8 +170,8 @@
.socketFd(fd)
);
---- projects/stargazer/inst/var/00-base-00.sql.org 2013-01-02 16:22:28.000000000 +0200
-+++ projects/stargazer/inst/var/00-base-00.sql 2013-01-02 16:22:52.000000000 +0200
+--- a/projects/stargazer/inst/var/00-base-00.sql.org 2013-01-02 16:22:28.000000000 +0200
++++ b/projects/stargazer/inst/var/00-base-00.sql 2013-01-02 16:22:52.000000000 +0200
@@ -50,9 +50,9 @@
/*
* CONNECT 'localhost:/var/stg/stargazer.fdb' USER 'stg' PASSWORD '123456';
diff --git a/net-misc/stargazer/files/patches/stg-2.408-makefile-firebird-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-makefile-firebird-upstream.patch
index 81f46f4a3bfe..166f12aff2a9 100644
--- a/net-misc/stargazer/files/patches/stg-2.408-makefile-firebird-upstream.patch
+++ b/net-misc/stargazer/files/patches/stg-2.408-makefile-firebird-upstream.patch
@@ -1,5 +1,5 @@
---- projects/stargazer/plugins/store/firebird/Makefile.org 2013-01-04 22:50:13.000000000 +0200
-+++ projects/stargazer/plugins/store/firebird/Makefile 2013-01-04 22:50:56.000000000 +0200
+--- a/projects/stargazer/plugins/store/firebird/Makefile.org 2013-01-04 22:50:13.000000000 +0200
++++ b/projects/stargazer/plugins/store/firebird/Makefile 2013-01-04 22:50:56.000000000 +0200
@@ -22,5 +22,11 @@
locker \
crypto
diff --git a/net-misc/stargazer/files/patches/stg-2.408-makefile.patch b/net-misc/stargazer/files/patches/stg-2.408-makefile.patch
index 81772d6641fe..6cb2a6c2dc50 100644
--- a/net-misc/stargazer/files/patches/stg-2.408-makefile.patch
+++ b/net-misc/stargazer/files/patches/stg-2.408-makefile.patch
@@ -1,5 +1,5 @@
---- projects/sgauth/Makefile.org 2013-01-05 23:47:38.000000000 +0200
-+++ projects/sgauth/Makefile 2013-01-05 23:48:34.000000000 +0200
+--- a/projects/sgauth/Makefile.org 2013-01-05 23:47:38.000000000 +0200
++++ b/projects/sgauth/Makefile 2013-01-05 23:48:34.000000000 +0200
@@ -67,8 +67,8 @@
install-data:
@@ -11,8 +11,8 @@
uninstall: uninstall-bin uninstall-data
---- projects/stargazer/Makefile.org 2013-01-05 22:53:26.000000000 +0200
-+++ projects/stargazer/Makefile 2013-01-05 22:54:52.000000000 +0200
+--- a/projects/stargazer/Makefile.org 2013-01-05 22:53:26.000000000 +0200
++++ b/projects/stargazer/Makefile 2013-01-05 22:54:52.000000000 +0200
@@ -92,30 +92,8 @@
mkdir -m $(DIR_MODE) -p $(PREFIX)/etc/stargazer/conf-available.d
mkdir -m $(DIR_MODE) -p $(PREFIX)/etc/stargazer/conf-enabled.d
@@ -44,8 +44,8 @@
uninstall: uninstall-bin uninstall-data
---- projects/rscriptd/Makefile.org 2013-01-19 17:03:42.000000000 +0200
-+++ projects/rscriptd/Makefile 2013-01-19 17:04:25.000000000 +0200
+--- a/projects/rscriptd/Makefile.org 2013-01-19 17:03:42.000000000 +0200
++++ b/projects/rscriptd/Makefile 2013-01-19 17:04:25.000000000 +0200
@@ -65,15 +65,13 @@
$(MAKE) -C $(DIR_LIBSRC) install
@@ -67,8 +67,8 @@
endif
uninstall: uninstall-bin uninstall-data
---- projects/rlm_stg/Makefile.org 2013-02-03 14:02:58.000000000 +0200
-+++ projects/rlm_stg/Makefile 2013-02-03 14:05:43.000000000 +0200
+--- a/projects/rlm_stg/Makefile.org 2013-02-03 14:02:58.000000000 +0200
++++ b/projects/rlm_stg/Makefile 2013-02-03 14:05:43.000000000 +0200
@@ -56,19 +56,11 @@
install: install-bin
@@ -89,8 +89,8 @@
$(MAKE) -C $(DIR_LIBSRC) install
uninstall: uninstall-bin
---- projects/rscriptd/Makefile.org 2013-02-03 14:17:01.000000000 +0200
-+++ projects/rscriptd/Makefile 2013-02-03 14:17:32.000000000 +0200
+--- a/projects/rscriptd/Makefile.org 2013-02-03 14:17:01.000000000 +0200
++++ b/projects/rscriptd/Makefile 2013-02-03 14:17:32.000000000 +0200
@@ -57,11 +57,7 @@
install: install-bin install-data
@@ -103,8 +103,8 @@
$(MAKE) -C $(DIR_LIBSRC) install
install-data:
---- projects/sgauth/Makefile.org 2013-02-03 14:18:37.000000000 +0200
-+++ projects/sgauth/Makefile 2013-02-03 14:18:48.000000000 +0200
+--- a/projects/sgauth/Makefile.org 2013-02-03 14:18:37.000000000 +0200
++++ b/projects/sgauth/Makefile 2013-02-03 14:18:48.000000000 +0200
@@ -58,11 +58,7 @@
install: install-bin install-data
@@ -117,8 +117,8 @@
$(MAKE) -C $(DIR_LIBSRC) install
install-data:
---- projects/sgconf/Makefile.org 2013-02-03 14:19:18.000000000 +0200
-+++ projects/sgconf/Makefile 2013-02-03 14:19:28.000000000 +0200
+--- a/projects/sgconf/Makefile.org 2013-02-03 14:19:18.000000000 +0200
++++ b/projects/sgconf/Makefile 2013-02-03 14:19:28.000000000 +0200
@@ -66,11 +66,7 @@
install: install-bin
@@ -131,8 +131,8 @@
$(MAKE) -C $(DIR_LIBSRC) install
uninstall: uninstall-bin
---- projects/sgconf_xml/Makefile.org 2013-02-03 14:19:53.000000000 +0200
-+++ projects/sgconf_xml/Makefile 2013-02-03 14:19:59.000000000 +0200
+--- a/projects/sgconf_xml/Makefile.org 2013-02-03 14:19:53.000000000 +0200
++++ b/projects/sgconf_xml/Makefile 2013-02-03 14:19:59.000000000 +0200
@@ -66,11 +66,7 @@
install: install-bin install-data
@@ -145,8 +145,8 @@
$(MAKE) -C $(DIR_LIBSRC) install
uninstall: uninstall-bin uninstall-data
---- projects/sgconv/Makefile.org 2013-02-03 14:20:24.000000000 +0200
-+++ projects/sgconv/Makefile 2013-02-03 14:20:33.000000000 +0200
+--- a/projects/sgconv/Makefile.org 2013-02-03 14:20:24.000000000 +0200
++++ b/projects/sgconv/Makefile 2013-02-03 14:20:33.000000000 +0200
@@ -61,11 +61,7 @@
install: install-bin
@@ -159,8 +159,8 @@
$(MAKE) -C $(DIR_PLUGINS) install
uninstall: uninstall-bin
---- projects/stargazer/Makefile.org 2013-02-03 14:20:56.000000000 +0200
-+++ projects/stargazer/Makefile 2013-02-03 14:21:30.000000000 +0200
+--- a/projects/stargazer/Makefile.org 2013-02-03 14:20:56.000000000 +0200
++++ b/projects/stargazer/Makefile 2013-02-03 14:21:30.000000000 +0200
@@ -77,11 +77,7 @@
install: install-bin install-data
@@ -173,8 +173,8 @@
$(MAKE) -C $(DIR_INCLUDE) install
$(MAKE) -C $(DIR_LIBSRC) install
$(MAKE) -C $(DIR_PLUGINS) install
---- stglibs/Makefile.in.org 2013-02-03 14:53:02.000000000 +0200
-+++ stglibs/Makefile.in 2013-02-03 14:53:11.000000000 +0200
+--- a/stglibs/Makefile.in.org 2013-02-03 14:53:02.000000000 +0200
++++ b/stglibs/Makefile.in 2013-02-03 14:53:11.000000000 +0200
@@ -35,11 +35,7 @@
rm -f deps $(PROG) *.o *.a *.so tags *.*~
@@ -187,8 +187,8 @@
mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/include/stg
install -m $(DATA_MODE) -o $(OWNER) $(addprefix include/stg/,$(INCS)) $(PREFIX)/usr/include/stg/
---- projects/stargazer/plugins/Makefile.in.org 2013-02-03 15:38:41.000000000 +0200
-+++ projects/stargazer/plugins/Makefile.in 2013-02-03 15:38:51.000000000 +0200
+--- a/projects/stargazer/plugins/Makefile.in.org 2013-02-03 15:38:41.000000000 +0200
++++ b/projects/stargazer/plugins/Makefile.in 2013-02-03 15:38:51.000000000 +0200
@@ -28,11 +28,7 @@
install: $(PROG)
diff --git a/net-misc/stargazer/files/patches/stg-2.408-on-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-on-upstream.patch
index 4afbb0340253..64a5964a8e0a 100644
--- a/net-misc/stargazer/files/patches/stg-2.408-on-upstream.patch
+++ b/net-misc/stargazer/files/patches/stg-2.408-on-upstream.patch
@@ -1,5 +1,5 @@
---- projects/stargazer/inst/linux/etc/stargazer/OnChange.org 2013-01-09 14:30:32.000000000 +0200
-+++ projects/stargazer/inst/linux/etc/stargazer/OnChange 2013-01-09 15:50:01.000000000 +0200
+--- a/projects/stargazer/inst/linux/etc/stargazer/OnChange.org 2013-01-09 14:30:32.000000000 +0200
++++ b/projects/stargazer/inst/linux/etc/stargazer/OnChange 2013-01-09 15:50:01.000000000 +0200
@@ -1,8 +1,20 @@
#! /bin/sh
@@ -28,8 +28,8 @@
+# Usage examples:
+#echo "User: '$LOGIN'. Parameter $PARAMETER changed from '$OLDVALUE' to '$NEWVALUE'" >> /var/stargazer/user.change.log
\ No newline at end of file
---- projects/stargazer/inst/linux/etc/stargazer/OnConnect.org 2013-01-09 14:39:51.000000000 +0200
-+++ projects/stargazer/inst/linux/etc/stargazer/OnConnect 2013-01-09 15:11:49.000000000 +0200
+--- a/projects/stargazer/inst/linux/etc/stargazer/OnConnect.org 2013-01-09 14:39:51.000000000 +0200
++++ b/projects/stargazer/inst/linux/etc/stargazer/OnConnect 2013-01-09 15:11:49.000000000 +0200
@@ -1,24 +1,23 @@
#! /bin/sh
@@ -66,8 +66,8 @@
+# Usage examples:
+#echo "Connected `date +%Y.%m.%d-%H.%M.%S` $IP $CASH" >> /var/stargazer/users/$LOGIN/connect.log
\ No newline at end of file
---- projects/stargazer/inst/linux/etc/stargazer/OnDisconnect.org 2013-01-09 14:54:36.000000000 +0200
-+++ projects/stargazer/inst/linux/etc/stargazer/OnDisconnect 2013-01-09 15:11:33.000000000 +0200
+--- a/projects/stargazer/inst/linux/etc/stargazer/OnDisconnect.org 2013-01-09 14:54:36.000000000 +0200
++++ b/projects/stargazer/inst/linux/etc/stargazer/OnDisconnect 2013-01-09 15:11:33.000000000 +0200
@@ -1,24 +1,23 @@
#! /bin/sh
@@ -104,8 +104,8 @@
+# Usage examples:
+#echo "Disconnected `date +%Y.%m.%d-%H.%M.%S` $IP $CASH" >> /var/stargazer/users/$LOGIN/connect.log
\ No newline at end of file
---- projects/stargazer/inst/linux/etc/stargazer/OnUserAdd.org 2013-01-09 15:01:57.000000000 +0200
-+++ projects/stargazer/inst/linux/etc/stargazer/OnUserAdd 2013-01-09 15:10:55.000000000 +0200
+--- a/projects/stargazer/inst/linux/etc/stargazer/OnUserAdd.org 2013-01-09 15:01:57.000000000 +0200
++++ b/projects/stargazer/inst/linux/etc/stargazer/OnUserAdd 2013-01-09 15:10:55.000000000 +0200
@@ -1,14 +1,12 @@
#! /bin/sh
@@ -130,8 +130,8 @@
+# Usage examples:
+#echo "Added user $login" >> /var/stargazer/add_del.log
\ No newline at end of file
---- projects/stargazer/inst/linux/etc/stargazer/OnUserDel.org 2013-01-09 15:12:32.000000000 +0200
-+++ projects/stargazer/inst/linux/etc/stargazer/OnUserDel 2013-01-09 15:14:10.000000000 +0200
+--- a/projects/stargazer/inst/linux/etc/stargazer/OnUserDel.org 2013-01-09 15:12:32.000000000 +0200
++++ b/projects/stargazer/inst/linux/etc/stargazer/OnUserDel 2013-01-09 15:14:10.000000000 +0200
@@ -1,7 +1,13 @@
#! /bin/sh
diff --git a/net-misc/stargazer/files/patches/stg-2.408-radius-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-radius-upstream.patch
index 790cc3a91e1e..553b31999277 100644
--- a/net-misc/stargazer/files/patches/stg-2.408-radius-upstream.patch
+++ b/net-misc/stargazer/files/patches/stg-2.408-radius-upstream.patch
@@ -1,5 +1,5 @@
---- projects/rlm_stg/Makefile.org 2013-01-18 16:17:18.000000000 +0200
-+++ projects/rlm_stg/Makefile 2013-01-18 16:19:13.000000000 +0200
+--- a/projects/rlm_stg/Makefile.org 2013-01-18 16:17:18.000000000 +0200
++++ b/projects/rlm_stg/Makefile 2013-01-18 16:19:13.000000000 +0200
@@ -57,16 +57,28 @@
install-bin:
diff --git a/net-misc/stargazer/files/patches/stg-2.408-rscriptd-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-rscriptd-upstream.patch
index 4e97da2f80e3..708c1d900627 100644
--- a/net-misc/stargazer/files/patches/stg-2.408-rscriptd-upstream.patch
+++ b/net-misc/stargazer/files/patches/stg-2.408-rscriptd-upstream.patch
@@ -1,5 +1,5 @@
---- projects/rscriptd/Makefile.org 2013-01-18 16:22:46.000000000 +0200
-+++ projects/rscriptd/Makefile 2013-01-18 16:25:08.000000000 +0200
+--- a/projects/rscriptd/Makefile.org 2013-01-18 16:22:46.000000000 +0200
++++ b/projects/rscriptd/Makefile 2013-01-18 16:25:08.000000000 +0200
@@ -68,6 +68,13 @@
# Install etc
mkdir -m $(DIR_MODE) -p $(PREFIX)/etc/rscriptd
diff --git a/net-misc/stargazer/files/patches/stg-2.408-rscriptd.conf-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-rscriptd.conf-upstream.patch
index 21746e59e8d1..6b606353e224 100644
--- a/net-misc/stargazer/files/patches/stg-2.408-rscriptd.conf-upstream.patch
+++ b/net-misc/stargazer/files/patches/stg-2.408-rscriptd.conf-upstream.patch
@@ -1,5 +1,5 @@
---- projects/rscriptd/rscriptd.conf.org 2013-01-12 15:44:46.000000000 +0200
-+++ projects/rscriptd/rscriptd.conf 2013-01-12 15:45:44.000000000 +0200
+--- a/projects/rscriptd/rscriptd.conf.org 2013-01-12 15:44:46.000000000 +0200
++++ b/projects/rscriptd/rscriptd.conf 2013-01-12 15:45:44.000000000 +0200
@@ -1,8 +1,68 @@
-LogFileName=/var/log/rscriptd.log
-ExecutersNum=1
diff --git a/net-misc/stargazer/files/patches/stg-2.408-sgauth.conf-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-sgauth.conf-upstream.patch
index 213d35fd2db7..d18c041cbdc3 100644
--- a/net-misc/stargazer/files/patches/stg-2.408-sgauth.conf-upstream.patch
+++ b/net-misc/stargazer/files/patches/stg-2.408-sgauth.conf-upstream.patch
@@ -1,5 +1,5 @@
---- projects/sgauth/sgauth.conf.org 2013-01-08 15:43:09.000000000 +0200
-+++ projects/sgauth/sgauth.conf 2013-01-09 13:41:53.000000000 +0200
+--- a/projects/sgauth/sgauth.conf.org 2013-01-08 15:43:09.000000000 +0200
++++ b/projects/sgauth/sgauth.conf 2013-01-09 13:41:53.000000000 +0200
@@ -1,37 +1,72 @@
-#Stargazer server ip
-ServerName=192.168.1.2
diff --git a/net-misc/stargazer/files/patches/stg-2.408-sgconv-upstream.patch b/net-misc/stargazer/files/patches/stg-2.408-sgconv-upstream.patch
index cfce675b1287..f1cdf5c5e83a 100644
--- a/net-misc/stargazer/files/patches/stg-2.408-sgconv-upstream.patch
+++ b/net-misc/stargazer/files/patches/stg-2.408-sgconv-upstream.patch
@@ -1,5 +1,5 @@
---- projects/sgconv/Makefile.org 2013-01-08 12:07:06.000000000 +0200
-+++ projects/sgconv/Makefile 2013-01-08 12:07:11.000000000 +0200
+--- a/projects/sgconv/Makefile.org 2013-01-08 12:07:06.000000000 +0200
++++ b/projects/sgconv/Makefile 2013-01-08 12:07:11.000000000 +0200
@@ -4,7 +4,7 @@
include ../../Makefile.conf
@@ -9,8 +9,8 @@
SRCS = ./main.cpp \
./settings_impl.cpp
---- projects/sgconv/build.org 2012-02-09 12:26:57.000000000 +0200
-+++ projects/sgconv/build 2013-01-08 12:10:02.000000000 +0200
+--- a/projects/sgconv/build.org 2012-02-09 12:26:57.000000000 +0200
++++ b/projects/sgconv/build 2013-01-08 12:10:02.000000000 +0200
@@ -45,13 +45,13 @@
if [ "$OS" = "unknown" ]
then
@@ -27,8 +27,8 @@
echo "#############################################################################"
STG_LIBS="logger.lib
---- projects/sgconv/settings_impl.h.org 2013-01-08 12:11:53.000000000 +0200
-+++ projects/sgconv/settings_impl.h 2013-01-08 12:11:58.000000000 +0200
+--- a/projects/sgconv/settings_impl.h.org 2013-01-08 12:11:53.000000000 +0200
++++ b/projects/sgconv/settings_impl.h 2013-01-08 12:11:58.000000000 +0200
@@ -38,7 +38,7 @@
class SETTINGS_IMPL {
diff --git a/net-misc/stargazer/files/patches/stg-2.408-static-libs.patch b/net-misc/stargazer/files/patches/stg-2.408-static-libs.patch
index 723d177ac79a..68f16d41647d 100644
--- a/net-misc/stargazer/files/patches/stg-2.408-static-libs.patch
+++ b/net-misc/stargazer/files/patches/stg-2.408-static-libs.patch
@@ -1,5 +1,5 @@
---- stglibs/Makefile.org 2013-01-19 18:21:57.000000000 +0200
-+++ stglibs/Makefile 2013-01-19 18:24:25.000000000 +0200
+--- a/stglibs/Makefile.org 2013-01-19 18:21:57.000000000 +0200
++++ b/stglibs/Makefile 2013-01-19 18:24:25.000000000 +0200
@@ -15,6 +15,6 @@
clean: all
diff --git a/net-misc/stargazer/metadata.xml b/net-misc/stargazer/metadata.xml
index bfed7e617ab5..5d46368a3e84 100644
--- a/net-misc/stargazer/metadata.xml
+++ b/net-misc/stargazer/metadata.xml
@@ -1,52 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="person">
- <email>spiderx@spiderx.dp.ua</email>
- <name>Vladimir Pavljuchenkov</name>
- </maintainer>
- <maintainer type="project">
- <email>proxy-maint@gentoo.org</email>
- <name>Proxy Maintainers</name>
- </maintainer>
- <longdescription>
- Stargazer is a powerful (inter)net billing system, capable of gathering
- traffic statistics from many sources (such as NetFlow protocol,
- ethernet packets capture, or IPQ subsystem), managing and billing user
- accounts according to specified fees and rules (including time-based rules,
- traffic source/destination rules and a payoff system).
- This ebuild allows you to compile it yourself depending of your needs.
- </longdescription>
- <use>
- <flag name="sgconv">Enable build of utility to convert Stargazer data between storage backends.</flag>
- <flag name="radius">Enable build of FreeRADIUS module for data access via Stargazer.</flag>
- <flag name="rscriptd">Enable build of remote script execute daemon for Stargazer, which run scripts when receive special signal from Stargazer.</flag>
- <flag name="sgauth">Enable build of command-line utility for authorization in Stargazer.</flag>
- <flag name="sgconf">Enable build of command-line utility for configuring Stargazer.</flag>
- <flag name="sgconf_xml">Enable build of command-line xml-based utility for configuring Stargazer.</flag>
- <flag name="stargazer">Enable build of Stargazer billing system.</flag>
- <flag name="debug">Enable extra debug codepaths, like asserts and extra output.</flag>
- <flag name="doc">Adds extra documentation (API, doc, etc).</flag>
- <flag name="examples">Install examples, usually source code.</flag>
- <flag name="module_auth_always_online">Enable build of "Always Online" authentication module for Stargazer.</flag>
- <flag name="module_auth_internet_access">Enable build of "InetAccess" authentication module for Stargazer. InetAccess is a Stargazer specific authentication protocol.</flag>
- <flag name="module_auth_freeradius">Enable build of "Radius" authentication module for Stargazer. This module capable of using RADIUS procotol for user authentication.</flag>
- <flag name="module_capture_ether">Enable build of "Ethernet" traffic capture module for Stargazer. This module uses RAW sockets to capture traffic.</flag>
- <flag name="module_capture_ipq">Enable build of "IPQ" traffic capture module for Stargazer. This module uses IPQ subsystem to capture traffic.</flag>
- <flag name="module_capture_netflow">Enable build of "NetFlow" traffic capture module for Stargazer. This module capable of receiving traffic data by NetFlow protocol.</flag>
- <flag name="module_config_rpcconfig">Enable build of "XMLRPC" configuration module for Stargazer. This module uses XML-RPC protocol for configuring Stargazer.</flag>
- <flag name="module_config_sgconfig">Enable build of "SGConf" configuration module for Stargazer. This module uses Stargazer specific protocol for configuring Stargazer.</flag>
- <flag name="module_other_ping">Enable build of "Ping" module for Stargazer. This module pings connected users from time to time to ensure they are alive.</flag>
- <flag name="module_other_remote_script">Enable build of "Remote Script" module for Stargazer. This module control rscriptd daemon over the net and makes it execute scripts in reaction to different Stargazer events.</flag>
- <flag name="module_other_smux">Enable build of SMUX module for Stargazer. This module uses SMUX protocol to provide various information about Stargazer.</flag>
- <flag name="module_store_files">Enable build of storage plugin for Stargazer based on plain files.</flag>
- <flag name="module_store_firebird">Enable build of storage plugin for Stargazer, which uses Firebird database for storage.</flag>
- <flag name="module_store_mysql">Enable build of storage plugin for Stargazer, which uses MySQL for storage.</flag>
- <flag name="module_store_postgres">Enable build of storage plugin for Stargazer, which uses PostgreSQL for storage.</flag>
- </use>
- <upstream>
- <changelog>http://stg.dp.ua/server_dl.php</changelog>
- <doc>http://stg.dp.ua/doc.php</doc>
- <bugs-to>mailto:faust@stg.dp.ua</bugs-to>
- </upstream>
+ <maintainer type="person">
+ <email>spiderx@spiderx.dp.ua</email>
+ <name>Vladimir Pavljuchenkov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ Stargazer is a powerful (inter)net billing system, capable of gathering
+ traffic statistics from many sources (such as NetFlow protocol,
+ ethernet packets capture, or IPQ subsystem), managing and billing user
+ accounts according to specified fees and rules (including time-based rules,
+ traffic source/destination rules and a payoff system).
+ This ebuild allows you to compile it yourself depending of your needs.
+ </longdescription>
+ <use>
+ <flag name="sgconv">Enable build of utility to convert Stargazer data between storage backends.</flag>
+ <flag name="radius">Enable build of FreeRADIUS module for data access via Stargazer.</flag>
+ <flag name="rscriptd">Enable build of remote script execute daemon for Stargazer, which run scripts when receive special signal from Stargazer.</flag>
+ <flag name="sgauth">Enable build of command-line utility for authorization in Stargazer.</flag>
+ <flag name="sgconf">Enable build of command-line utility for configuring Stargazer.</flag>
+ <flag name="sgconf_xml">Enable build of command-line xml-based utility for configuring Stargazer.</flag>
+ <flag name="stargazer">Enable build of Stargazer billing system.</flag>
+ <flag name="debug">Enable extra debug codepaths, like asserts and extra output.</flag>
+ <flag name="module_auth_always_online">Enable build of "Always Online" authentication module for Stargazer.</flag>
+ <flag name="module_auth_internet_access">Enable build of "InetAccess" authentication module for Stargazer. InetAccess is a Stargazer specific authentication protocol.</flag>
+ <flag name="module_auth_freeradius">Enable build of "Radius" authentication module for Stargazer. This module capable of using RADIUS procotol for user authentication.</flag>
+ <flag name="module_capture_ether">Enable build of "Ethernet" traffic capture module for Stargazer. This module uses RAW sockets to capture traffic.</flag>
+ <flag name="module_capture_ipq">Enable build of "IPQ" traffic capture module for Stargazer. This module uses IPQ subsystem to capture traffic.</flag>
+ <flag name="module_capture_netflow">Enable build of "NetFlow" traffic capture module for Stargazer. This module capable of receiving traffic data by NetFlow protocol.</flag>
+ <flag name="module_config_rpcconfig">Enable build of "XMLRPC" configuration module for Stargazer. This module uses XML-RPC protocol for configuring Stargazer.</flag>
+ <flag name="module_config_sgconfig">Enable build of "SGConf" configuration module for Stargazer. This module uses Stargazer specific protocol for configuring Stargazer.</flag>
+ <flag name="module_other_ping">Enable build of "Ping" module for Stargazer. This module pings connected users from time to time to ensure they are alive.</flag>
+ <flag name="module_other_remote_script">Enable build of "Remote Script" module for Stargazer. This module control rscriptd daemon over the net and makes it execute scripts in reaction to different Stargazer events.</flag>
+ <flag name="module_other_smux">Enable build of SMUX module for Stargazer. This module uses SMUX protocol to provide various information about Stargazer.</flag>
+ <flag name="module_store_files">Enable build of storage plugin for Stargazer based on plain files.</flag>
+ <flag name="module_store_firebird">Enable build of storage plugin for Stargazer, which uses Firebird database for storage.</flag>
+ <flag name="module_store_mysql">Enable build of storage plugin for Stargazer, which uses MySQL for storage.</flag>
+ <flag name="module_store_postgres">Enable build of storage plugin for Stargazer, which uses PostgreSQL for storage.</flag>
+ </use>
+ <upstream>
+ <doc>http://stg.net.ua/doc/index.html</doc>
+ <bugs-to>mailto:faust@stg.dp.ua</bugs-to>
+ <remote-id type="github">madf/stg</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/net-misc/stargazer/stargazer-2.408-r1.ebuild b/net-misc/stargazer/stargazer-2.408-r1.ebuild
new file mode 100644
index 000000000000..18d197b3ccb1
--- /dev/null
+++ b/net-misc/stargazer/stargazer-2.408-r1.ebuild
@@ -0,0 +1,538 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PROJECTS="sgconv rlm_stg rscriptd sgauth sgconf sgconf_xml stargazer"
+
+STG_MODULES_AUTH="always_online internet_access freeradius"
+STG_MODULES_CAPTURE="ipq ether netflow"
+STG_MODULES_CONFIG="sgconfig rpcconfig"
+STG_MODULES_OTHER="ping smux remote_script"
+STG_MODULES_STORE="files firebird mysql postgres"
+
+declare -A MODULES
+MODULES=( [module_auth_always_online]="authorization\/ao:mod_ao"
+ [module_auth_internet_access]="authorization\/inetaccess:mod_ia"
+ [module_auth_freeradius]="other\/radius:mod_radius"
+ [module_capture_ipq]="capture\/ipq_linux:mod_cap_ipq"
+ [module_capture_ether]="capture\/ether_linux:mod_cap_ether"
+ [module_capture_netflow]="capture\/cap_nf:mod_cap_nf"
+ [module_config_sgconfig]="configuration\/sgconfig:mod_sg"
+ [module_config_rpcconfig]="configuration\/rpcconfig:mod_rpc"
+ [module_other_ping]="other\/ping:mod_ping"
+ [module_other_smux]="other\/smux:mod_smux"
+ [module_other_remote_script]="other\/rscript:mod_remote_script"
+ [module_store_files]="store\/files:store_files"
+ [module_store_firebird]="store\/firebird:store_firebird"
+ [module_store_mysql]="store\/mysql:store_mysql"
+ [module_store_postgres]="store\/postgresql:store_postgresql"
+)
+
+declare -A INIT
+INIT=( [module_store_files]="11d"
+ [module_store_firebird]="11d;s/need net/need net firebird/"
+ [module_store_mysql]="11d;s/need net/need net mysql/"
+ [module_store_postgres]="11d;s/need net/need net postgresql/"
+)
+
+MY_P="stg-${PV}"
+
+inherit flag-o-matic linux-info user
+
+DESCRIPTION="Billing system for small home and office networks"
+HOMEPAGE="http://stg.dp.ua/"
+SRC_URI="http://stg.dp.ua/download/server/${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ module_config_rpcconfig? (
+ dev-libs/expat
+ dev-libs/xmlrpc-c[abyss,cxx]
+ )
+ module_config_sgconfig? ( dev-libs/expat )
+ module_store_firebird? ( dev-db/firebird )
+ module_store_mysql? ( dev-db/mysql-connector-c:0= )
+ module_store_postgres? ( dev-db/postgresql:= )
+ sgconf? ( dev-libs/expat )
+ sgconf_xml? ( dev-libs/expat )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+REQUIRED_USE="stargazer? ( ^^ ( module_store_files module_store_firebird module_store_mysql module_store_postgres ) )"
+
+DOCS=( BUGS ../../ChangeLog CHANGES README TODO )
+
+# Patches already in upstream's trunk
+PATCHES=(
+ # Fix dependency on fbclient for module_store_firebird
+ "${FILESDIR}"/patches/stg-2.408-makefile-firebird-upstream.patch
+ # Rewrite config for rscriptd
+ "${FILESDIR}"/patches/stg-2.408-rscriptd.conf-upstream.patch
+ # Rewrite config for sgauth
+ "${FILESDIR}"/patches/stg-2.408-sgauth.conf-upstream.patch
+ # Standardization of 'On-scripts'
+ "${FILESDIR}"/patches/stg-2.408-on-upstream.patch
+ # Install demo scripts for rscriptd
+ "${FILESDIR}"/patches/stg-2.408-rscriptd-upstream.patch
+ # Fix crush on stop
+ "${FILESDIR}"/patches/stg-2.408-fix-crash-on-stop.patch
+ # Rename convertor to sgconv to avoid possible file name collisions
+ "${FILESDIR}"/patches/stg-2.408-sgconv-upstream.patch
+ # Debug support. Install radius lib to /usr/lib/freeradius
+ "${FILESDIR}"/patches/stg-2.408-makefile-build-upstream.patch
+ # Don't compile sgconv always with debug. Remove MAKEOPTS=-j1
+ "${FILESDIR}"/patches/stg-2.408-build-upstream.patch
+ # FreeBSD install directory
+ "${FILESDIR}"/patches/stg-2.408-radius-upstream.patch
+)
+
+IUSE="sgconv radius rscriptd sgauth sgconf sgconf_xml stargazer debug"
+
+for module in ${STG_MODULES_AUTH} ; do IUSE="${IUSE} module_auth_${module}" ; done
+for module in ${STG_MODULES_CAPTURE} ; do IUSE="${IUSE} module_capture_${module}" ; done
+for module in ${STG_MODULES_CONFIG} ; do IUSE="${IUSE} module_config_${module}" ; done
+for module in ${STG_MODULES_OTHER} ; do IUSE="${IUSE} module_other_${module}" ; done
+for module in ${STG_MODULES_STORE} ; do IUSE="${IUSE} module_store_${module}" ; done
+
+IUSE=${IUSE/stargazer/+stargazer}
+IUSE=${IUSE/module_store_files/+module_store_files}
+
+src_prepare() {
+ # Rename convertor to sgconv to avoid possible file name collisions
+ mv projects/convertor/ projects/sgconv/ \
+ || die "Couldn't move convertor folder"
+ mv projects/sgconv/convertor.conf \
+ projects/sgconv/sgconv.conf || die "Couldn't move convertor config"
+
+ default
+
+ local project
+ for project in ${PROJECTS} ; do
+ # Rename build script to configure for further econf launch in every project
+ mv projects/$project/build projects/$project/configure \
+ || die "Couldn't move build folder for $project"
+ # Change check for debug build
+ sed -i 's/if \[ "$1" = "debug" \]/if \[ "${10}" = "--enable-debug" \]/' \
+ projects/$project/configure \
+ || die "sed for debug check failed"
+ done
+
+ # Correct working directory, user and group for sgconv.conf, store_files.conf
+ # Correct paths for rscriptd.conf, store_firebird.conf, mod_remote_scriptd.conf, stargazer.conf, rpcconfig.cpp, 00-base-00.sql
+ eapply "${FILESDIR}"/patches/stg-2.408-correct-paths.patch
+
+ # Correct target install-data for stargazer, rscriptd, sgauth, remove debug symbols stripping
+ eapply "${FILESDIR}"/patches/stg-2.408-makefile.patch
+
+ # Remove make from script (for keeping symbols), always add variable to Makefile.conf for all projects
+ eapply "${FILESDIR}"/patches/stg-2.408-build.patch
+
+ # Remove static-libs
+ eapply "${FILESDIR}"/patches/stg-2.408-static-libs.patch
+
+ # Define which module to compile
+ local module
+ for module in ${!MODULES[@]} ; do
+ if ! use $module ; then
+ sed -i "s/${MODULES[$module]%:*}//" \
+ projects/stargazer/configure \
+ || die "sed for module configure failed"
+ fi
+ done
+
+ # Correct Gentoo init script
+ sed -i -e 's/opts/extra_commands/' \
+ -e 's/runscript/openrc-run/' \
+ projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo \
+ || die "sed for init-script failed"
+ local init
+ for init in ${!INIT[@]} ; do
+ if use $init ; then
+ sed -i "${INIT[$init]}" \
+ projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo \
+ || die "sed for $init failed"
+ fi
+ done
+
+ # Check for IPQ subsystem availability
+ if use module_capture_ipq && kernel_is ge 3 5 ; then
+ die "The IPQ subsystem requires kernel 3.5 or greater."
+ fi
+}
+
+src_configure() {
+ use debug && filter-flags '-O?'
+
+ # Define local variables, strip '+' symbol for used by default USE flags
+ local USEFLAGS=(${IUSE//+})
+ local PROJECTS=($PROJECTS)
+ local i
+
+ for (( i = 0 ; i < ${#PROJECTS[@]} ; i++ )) ; do
+ if use ${USEFLAGS[$i]} ; then
+ cd "${S}"/projects/${PROJECTS[$i]} \
+ || die "cd to ${PROJECTS[$i]} failed"
+ econf $(use_enable debug)
+ fi
+ done
+}
+
+src_compile() {
+ # Define local variables, strip '+' symbol for used by default USE flags
+ local USEFLAGS=(${IUSE//+})
+ local PROJECTS=($PROJECTS)
+ local i
+
+ # Set jobs to 1 for debug build
+ use debug && MAKEOPTS="-j1"
+
+ # Build necessary libraries first
+ touch Makefile.conf
+ cd stglibs || die "cd to stglibs failed"
+ emake STG_LIBS="ia.lib srvconf.lib"
+
+ for (( i = 0 ; i < ${#PROJECTS[@]} ; i++ )) ; do
+ if use ${USEFLAGS[$i]} ; then
+ cd "${S}"/projects/${PROJECTS[$i]} \
+ || die "cd to ${PROJECTS[$i]} failed"
+ emake
+ fi
+ done
+}
+
+src_install() {
+ if use rscriptd || use stargazer ; then
+ # Install config file for logrotate
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/logrotate stargazer
+
+ # Keeping logs directory
+ diropts -m 755 -o stg -g stg
+ keepdir /var/log/stargazer
+ if use stargazer ; then
+ diropts -m 775 -o stg -g stg
+ keepdir /var/lib/stargazer
+ fi
+ fi
+
+ if use sgconv ; then
+ cd projects/sgconv || die "cd to sgconv failed"
+
+ emake DESTDIR="${D}" PREFIX="${D}" install
+
+ # Install files into specified directory
+ insinto /etc/stargazer
+ doins "${S}"/projects/sgconv/sgconv.conf
+
+ # Install manual page
+ doman "${FILESDIR}"/mans/sgconv.1
+ fi
+
+ if use radius ; then
+ cd "${S}"/projects/rlm_stg || die "cd to rlm_stg failed"
+
+ emake DESTDIR="${D}" PREFIX="${D}" install
+ fi
+
+ if use rscriptd ; then
+ cd "${S}"/projects/rscriptd || die "cd to rscriptd failed"
+
+ emake DESTDIR="${D}" PREFIX="${D}" install
+
+ # Install Gentoo init script
+ doinitd "${FILESDIR}"/rscriptd
+
+ # Correct permissions for file
+ fperms 0640 /etc/stargazer/rscriptd.conf
+
+ # Install manual page
+ doman "${FILESDIR}"/mans/rscriptd.8
+ fi
+
+ if use sgauth ; then
+ cd "${S}"/projects/sgauth || die "cd to sgauth failed"
+
+ emake DESTDIR="${D}" PREFIX="${D}" install
+
+ # Correct permissions for file
+ fperms 0640 /etc/stargazer/sgauth.conf
+
+ # Install manual page
+ doman "${FILESDIR}"/mans/sgauth.8
+ fi
+
+ if use sgconf ; then
+ cd "${S}"/projects/sgconf || die "cd to sgconf failed"
+
+ emake DESTDIR="${D}" PREFIX="${D}" install
+
+ # Install manual page
+ doman "${FILESDIR}"/mans/sgconf.1
+ fi
+
+ if use sgconf_xml ; then
+ cd "${S}"/projects/sgconf_xml || die "cd to sgconf_xml failed"
+
+ emake DESTDIR="${D}" PREFIX="${D}" install
+
+ # Install manual page
+ doman "${FILESDIR}"/mans/sgconf_xml.1
+ fi
+
+ if use stargazer ; then
+ cd "${S}"/projects/stargazer || die "cd to stargazer failed"
+
+ emake DESTDIR="${D}" PREFIX="${D}" install
+
+ # Install docs
+ einstalldocs
+
+ # Install and rename Gentoo init script
+ newinitd "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo stargazer
+
+ # Install manual page
+ doman "${FILESDIR}"/mans/stargazer.8
+
+ # Install files needed for module_store_files
+ if use module_store_files ; then
+ # Install files into specified directory
+ insinto /var/lib
+ doins -r "${S}"/projects/stargazer/inst/var/stargazer
+
+ # Correct user and group for files and directories
+ fowners -R stg:stg /var/lib/stargazer
+ fi
+
+ if use module_store_firebird ; then
+ # Install files into specified directory
+ insinto /usr/share/stargazer/db/firebird
+ doins \
+ "${S}"/projects/stargazer/inst/var/00-base-00.sql \
+ "${S}"/projects/stargazer/inst/var/00-alter-01.sql
+ fi
+
+ if use module_store_mysql ; then
+ # Install file into specified directory
+ insinto /usr/share/stargazer/db/mysql
+ doins "${S}"/projects/stargazer/inst/var/00-mysql-01.sql
+ fi
+
+ if use module_store_postgres ; then
+ # Install files into specified directory
+ insinto /usr/share/stargazer/db/postgresql
+ doins \
+ "${S}"/projects/stargazer/inst/var/00-base-00.postgresql.sql \
+ "${S}"/projects/stargazer/inst/var/00-alter-01.postgresql.sql
+ fi
+
+ if use module_other_smux ; then
+ # Install files into specified directory
+ insinto /usr/share/snmp/mibs
+ doins "${S}"/projects/stargazer/plugins/other/smux/STG-MIB.mib
+ fi
+
+ if use module_other_remote_script ; then
+ # Create subnets file based on example from mod_remote_script.conf
+ grep 192 "${S}"/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf \
+ | sed 's/# //' > "${ED%/}"/etc/stargazer/subnets
+
+ # Correct permissions for file
+ fperms 0640 /etc/stargazer/subnets
+ fi
+
+ # Correct permissions for files
+ fperms 0640 \
+ /etc/stargazer/rules \
+ /etc/stargazer/stargazer.conf
+
+ # Install files into specified directory for selected modules
+ insinto /etc/stargazer/conf-available.d
+ insopts -m 0640
+
+ local module
+ for module in ${!MODULES[@]} ; do
+ use $module && doins "${S}"/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/${MODULES[$module]#*:}.conf
+ done
+
+ # Create symlinks of configs for selected modules
+ for module in ${!MODULES[@]} ; do
+ use $module \
+ && dosym \
+ /etc/stargazer/conf-available.d/${MODULES[$module]#*:}.conf \
+ /etc/stargazer/conf-enabled.d/${MODULES[$module]#*:}.conf
+ done
+ fi
+
+ # Correct user and group for files and directories
+ if use sgconv || use rscriptd || use sgauth || use stargazer ; then
+ fowners -R stg:stg /etc/stargazer
+ fi
+
+ # Put the files in the right folder to support multilib
+ if [ ! -e "${ED}"/usr/$(get_libdir) ] ; then
+ mv "${ED}"/usr/lib/ "${ED}"/usr/$(get_libdir) \
+ || die "Failed to move library directory for multilib support"
+ fi
+}
+
+pkg_setup() {
+ # Add user and group to system only when necessary
+ if use sgconv || use rscriptd || use sgauth || use stargazer ; then
+ enewgroup stg
+ enewuser stg -1 -1 -1 stg
+ fi
+}
+
+pkg_postinst() {
+ if use sgconv ; then
+ einfo "\nSgconv:"
+ einfo "----------"
+ einfo "For further use edit /etc/stargazer/sgconv.conf."
+ fi
+
+ if use radius ; then
+ einfo "\nRadius:"
+ einfo "-------"
+ einfo "For further use emerge net-dialup/freeradius.\n"
+
+ einfo "Example config:\n"
+
+ einfo "stg {"
+ einfo " local_port = 6667"
+ einfo " server = localhost"
+ einfo " port = 6666"
+ einfo " password = 123456"
+ einfo " }\n"
+
+ einfo "You should place 'stg' into section Instantiate, Authorize."
+ einfo "In section Authentificate 'stg' should go in sub-section"
+ einfo "Auth-Type before other authentifications modules:\n"
+
+ einfo "Auth-Type PAP {"
+ einfo " stg"
+ einfo " pap"
+ einfo "}\n"
+
+ einfo "It also may be used in section Accounting and Post-Auth."
+
+ use module_auth_freeradius || einfo "\nFor use RADIUS enable USE-flag module_auth_freeradius."
+ fi
+
+ if use rscriptd ; then
+ einfo "\nRemote Script Executer:"
+ einfo "-----------------------"
+ einfo "For further use edit /etc/stargazer/rscriptd.conf."
+ einfo "You have to change 'Password' field at least."
+ fi
+
+ if use sgauth ; then
+ einfo "\nSgauth:"
+ einfo "-------"
+ einfo "For further use edit /etc/stargazer/sgauth.conf."
+ einfo "You have to change 'ServerName', 'Login', 'Password' fields at least."
+ fi
+
+ if use sgconf ; then
+ einfo "\nSgconf:"
+ einfo "-------"
+ use module_config_sgconfig \
+ || einfo "For further use enable USE-flag module_config_sgconfig."
+ fi
+
+ if use sgconf_xml ; then
+ einfo "\nSgconf_xml:"
+ einfo "-----------"
+ use module_config_rpcconfig \
+ || einfo "For further use enable USE-flag module_config_rpcconfig."
+ fi
+
+ if use stargazer ; then
+ einfo "\nStargazer:"
+ einfo "----------"
+ einfo "Modules availability:\n"
+ if use module_auth_always_online ; then
+ einfo "* module_auth_always_online available."
+ fi
+ if use module_auth_internet_access ; then
+ einfo "* module_auth_internet_access available."
+ fi
+ if use module_auth_freeradius ; then
+ einfo "* module_auth_freeradius available.\n"
+ einfo "For further use emerge net-dialup/freeradius.\n"
+ use radius || einfo "\n For use RADIUS enable use USE-flag radius."
+ fi
+ if use module_capture_ipq ; then
+ einfo "* module_capture_ipq available."
+ fi
+ if use module_capture_ether ; then
+ einfo "* module_capture_ether available."
+ fi
+ if use module_capture_netflow ; then
+ einfo "* module_capture_netflow available.\n"
+ einfo "For further use emerge any netflow sensor:\n"
+ einfo "net-firewall/ipt_netflow or net-analyzer/softflowd.\n"
+ fi
+ if use module_config_sgconfig ; then
+ einfo "* module_config_sgconfig available."
+ fi
+ if use module_config_rpcconfig ; then
+ einfo "* module_config_rpcconfig available.\n"
+ einfo "KNOWN BUG: Sometimes you can't configure Stargazer"
+ einfo "through xml-based configurator, because module is not responding."
+ einfo "This bug is introduced by xmlrpc-c library."
+ einfo "This bug proceeds very rare, but it still exists.\n"
+ fi
+ if use module_other_ping ; then
+ einfo "* module_other_ping available."
+ fi
+ if use module_other_smux ; then
+ einfo "* module_other_smux available.\n"
+ einfo "For further use emerge net-analyzer/net-snmp.\n"
+ fi
+ if use module_other_remote_script ; then
+ einfo "* module_other_remote_script available.\n"
+ einfo "For further use edit /etc/stargazer/subnets.\n"
+ fi
+ if use module_store_files ; then
+ einfo "* module_store_files available."
+ fi
+ if use module_store_firebird ; then
+ einfo "* module_store_firebird available.\n"
+ einfo "You should add 'firebird' user to stg group:\n"
+ einfo "# usermod -a -G stg firebird\n"
+ einfo "and restart firebird:\n"
+ einfo "# /etc/init.d/firebird restart\n"
+ einfo "Stargazer DB schema for Firebird is here: /usr/share/stargazer/db/firebird"
+ einfo "For new setup you should execute 00-base-00.sql:\n"
+ einfo "# fbsql -q -i /usr/share/stargazer/db/firebird/00-base-00.sql\n"
+ einfo "For upgrade from version 2.406 you should execute 00-alter-01.sql:\n"
+ einfo "# fbsql -i /usr/share/stargazer/db/firebird/00-alter-01.sql\n"
+ fi
+ if use module_store_mysql ; then
+ einfo "* module_store_mysql available.\n"
+ einfo "For upgrade from version 2.406 you should execute 00-mysql-01.sql:\n"
+ einfo "# mysql < /usr/share/stargazer/db/mysql/00-mysql-01.sql\n"
+ fi
+ if use module_store_postgres ; then
+ einfo "* module_store_postgres available.\n"
+ einfo "DB schema for PostgresSQL is here: /usr/share/stargazer/db/postgresql"
+ einfo "For new setup you should execute 00-base-00.postgresql.sql:\n"
+ einfo "# psql -f /usr/share/stargazer/db/postgresql/00-base-00.postgresql.sql\n"
+ einfo "For upgrade from version 2.406 you should execute 00-alter-01.sql:\n"
+ einfo "# psql -f /usr/share/stargazer/db/postgresql/00-alter-01.sql\n"
+ fi
+ einfo "\n For all storage backends:\n"
+ einfo "* Default admin login - admin, default admin password - 123456."
+ einfo "* Default subscriber login - test, default subscriber password - 123456.\n"
+ einfo "Don't run newer versions without reading their ChangeLog first,"
+ einfo "it can be found in /usr/share/doc/${PF}"
+ fi
+ if use debug ; then
+ ewarn "\nThis is a debug build, avoid to use it in production."
+ fi
+}
diff --git a/net-misc/stargazer/stargazer-2.408.ebuild b/net-misc/stargazer/stargazer-2.408.ebuild
deleted file mode 100644
index 112fde0575b7..000000000000
--- a/net-misc/stargazer/stargazer-2.408.ebuild
+++ /dev/null
@@ -1,558 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit eutils linux-info multilib user
-
-DESCRIPTION="Billing system for small home and office networks"
-HOMEPAGE="http://stg.dp.ua/"
-LICENSE="GPL-2"
-
-MY_P="stg-${PV}"
-SRC_URI="http://stg.dp.ua/download/server/${PV}/${MY_P}.tar.gz"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-S="${WORKDIR}/${MY_P}"
-
-REQUIRED_USE="stargazer? ( ^^ ( module_store_files module_store_firebird module_store_mysql module_store_postgres ) )"
-
-RDEPEND="module_config_rpcconfig? ( dev-libs/xmlrpc-c[abyss] sys-libs/zlib )
- module_config_sgconfig? ( dev-libs/expat )
- module_store_firebird? ( >=dev-db/firebird-2.0.3.12981.0-r6 )
- module_store_mysql? ( virtual/mysql )
- module_store_postgres? ( dev-db/postgresql dev-libs/openssl sys-libs/zlib )
- sgconf? ( dev-libs/expat )
- sgconf_xml? ( dev-libs/expat )"
-
-DEPEND="${RDEPEND}
- doc? ( dev-libs/libxslt )"
-
-PROJECTS="sgconv rlm_stg rscriptd sgauth sgconf sgconf_xml stargazer"
-
-STG_MODULES_AUTH="always_online internet_access freeradius"
-STG_MODULES_CAPTURE="ipq ether netflow"
-STG_MODULES_CONFIG="sgconfig rpcconfig"
-STG_MODULES_OTHER="ping smux remote_script"
-STG_MODULES_STORE="files firebird mysql postgres"
-
-declare -A MODULES
-MODULES=( [module_auth_always_online]="authorization\/ao:mod_ao"
- [module_auth_internet_access]="authorization\/inetaccess:mod_ia"
- [module_auth_freeradius]="other\/radius:mod_radius"
- [module_capture_ipq]="capture\/ipq_linux:mod_cap_ipq"
- [module_capture_ether]="capture\/ether_linux:mod_cap_ether"
- [module_capture_netflow]="capture\/cap_nf:mod_cap_nf"
- [module_config_sgconfig]="configuration\/sgconfig:mod_sg"
- [module_config_rpcconfig]="configuration\/rpcconfig:mod_rpc"
- [module_other_ping]="other\/ping:mod_ping"
- [module_other_smux]="other\/smux:mod_smux"
- [module_other_remote_script]="other\/rscript:mod_remote_script"
- [module_store_files]="store\/files:store_files"
- [module_store_firebird]="store\/firebird:store_firebird"
- [module_store_mysql]="store\/mysql:store_mysql"
- [module_store_postgres]="store\/postgresql:store_postgresql"
-)
-
-IUSE="sgconv radius rscriptd sgauth sgconf sgconf_xml stargazer debug doc examples static-libs"
-
-for module in ${STG_MODULES_AUTH} ; do IUSE="${IUSE} module_auth_${module}" ; done
-for module in ${STG_MODULES_CAPTURE} ; do IUSE="${IUSE} module_capture_${module}" ; done
-for module in ${STG_MODULES_CONFIG} ; do IUSE="${IUSE} module_config_${module}" ; done
-for module in ${STG_MODULES_OTHER} ; do IUSE="${IUSE} module_other_${module}" ; done
-for module in ${STG_MODULES_STORE} ; do IUSE="${IUSE} module_store_${module}" ; done
-
-IUSE=${IUSE/stargazer/+stargazer}
-IUSE=${IUSE/module_store_files/+module_store_files}
-
-src_prepare() {
- # Patches already in upstream's trunk
- # Rename convertor to sgconv to avoid possible file name collisions
- mv "${S}"/projects/convertor/ "${S}"/projects/sgconv/ || die "Couldn't move convertor folder"
- mv "${S}"/projects/sgconv/convertor.conf "${S}"/projects/sgconv/sgconv.conf || die "Couldn't move convertor config"
- epatch "${FILESDIR}"/patches/stg-2.408-sgconv-upstream.patch
-
- # Fix dependency on fbclient for module_store_firebird
- epatch "${FILESDIR}"/patches/stg-2.408-makefile-firebird-upstream.patch
-
- # Debug support. Install radius lib to /usr/lib/freeradius
- epatch "${FILESDIR}"/patches/stg-2.408-makefile-build-upstream.patch
-
- # Don't compile sgconv always with debug. Remove MAKEOPTS=-j1
- epatch "${FILESDIR}"/patches/stg-2.408-build-upstream.patch
-
- # Rewrite config for rscriptd
- epatch "${FILESDIR}"/patches/stg-2.408-rscriptd.conf-upstream.patch
-
- # Rewrite config for sgauth
- epatch "${FILESDIR}"/patches/stg-2.408-sgauth.conf-upstream.patch
-
- # Standardization of 'On-scripts'
- epatch "${FILESDIR}"/patches/stg-2.408-on-upstream.patch
-
- # FreeBSD install directory
- epatch "${FILESDIR}"/patches/stg-2.408-radius-upstream.patch
-
- # Install demo scripts for rscriptd
- epatch "${FILESDIR}"/patches/stg-2.408-rscriptd-upstream.patch
-
- # Fix crush on stop
- epatch "${FILESDIR}"/patches/stg-2.408-fix-crash-on-stop.patch
-
- for project in ${PROJECTS} ; do
- # Rename build script to configure for further econf launch in every projects
- mv "${S}"/projects/${project}/build "${S}"/projects/${project}/configure || die "Couldn't move build folder for ${project}"
-
- # Change check for debug build
- sed -i 's/if \[ "$1" = "debug" \]/if \[ "${10}" = "--enable-debug" \]/' "${S}"/projects/${project}/configure || die "sed for debug check failed"
- done
-
- # Correct working directory, user and group for sgconv.conf, store_files.conf
- # Correct paths for rscriptd.conf, store_firebird.conf, mod_remote_scriptd.conf, stargazer.conf, rpcconfig.cpp, 00-base-00.sql
- epatch "${FILESDIR}"/patches/stg-2.408-correct-paths.patch
-
- # Correct target install-data for stargazer, rscriptd, sgauth, remove debug symbols stripping
- epatch "${FILESDIR}"/patches/stg-2.408-makefile.patch
-
- # Remove make from script (for keeping symbols), always add variable to Makefile.conf for all projects
- epatch "${FILESDIR}"/patches/stg-2.408-build.patch
-
- # Remove static-libs if not needed
- use static-libs || epatch "${FILESDIR}"/patches/stg-2.408-static-libs.patch
-
- # Define which module to compile
- for module in ${!MODULES[@]} ; do
- if ! use $module ; then
- sed -i "s/${MODULES[$module]%:*}//" "${S}"/projects/stargazer/configure || die "sed for module configure failed"
- fi
- done
-
- # Correct Gentoo init script provided by upstream (TODO: Remove in further releases, already fixed in upstream's trunk)
- if use stargazer ; then
- sed -i 's/opts/extra_commands/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for stargazer failed"
- fi
-
- # Correct Gentoo init script dependencies
- if use module_store_files ; then
- sed -i '11d' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for module_store_files failed"
- fi
-
- if use module_store_firebird ; then
- sed -i '11d;s/need net/need net firebird/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for module_store_firebird failed"
- fi
-
- if use module_store_mysql ; then
- sed -i '11d;s/need net/need net mysql/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for module_store_mysql failed"
- fi
-
- if use module_store_postgres ; then
- sed -i '11d;s/need net/need net postgresql/' "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo || die "sed for module_store_postgres failed"
- fi
-
- # Check for IPQ subsystem availability
- ( use module_capture_ipq && kernel_is ge 3 5 ) && die "IPQ subsystem is gone since Linux kernel 3.5. You can't compile module_capture_ipq with your current kernel."
-
- epatch_user
-}
-
-src_configure() {
- # Define local variables, strip '+' symbol for used by default USE flags
- local USEFLAGS=(${IUSE//+})
- local PROJECTS=($PROJECTS)
-
- for (( i = 0 ; i < ${#PROJECTS[@]} ; i++ )) ; do
- if use ${USEFLAGS[$i]} ; then
- cd "${S}"/projects/${PROJECTS[$i]} || die "cd to ${PROJECTS[$i]} failed"
- econf $(use_enable debug)
- fi
- done
-}
-
-src_compile() {
- # Define local variables, strip '+' symbol for used by default USE flags
- local USEFLAGS=(${IUSE//+})
- local PROJECTS=($PROJECTS)
-
- # Set jobs to 1 for debug build
- use debug && MAKEOPTS="-j1"
-
- # Build necessary libraries first
- touch "${S}"/Makefile.conf
- cd "${S}"/stglibs || die "cd to stglibs failed"
- emake STG_LIBS="ia.lib srvconf.lib"
-
- for (( i = 0 ; i < ${#PROJECTS[@]} ; i++ )) ; do
- if use ${USEFLAGS[$i]} ; then
- cd "${S}"/projects/${PROJECTS[$i]} || die "cd to ${PROJECTS[$i]} failed"
- emake
- fi
- done
-
- if use doc ; then
- cd "${S}"/doc/xmlrpc || die "cd to doc/xmlrpc failed"
- emake
- fi
-}
-
-src_install() {
- dodoc ChangeLog
-
- if use rscriptd || use stargazer ; then
- # Install config file for logrotate
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/logrotate stargazer
-
- # Keeping logs directory
- diropts -m 755 -o stg -g stg
- keepdir /var/log/stargazer
- if use stargazer ; then
- diropts -m 775 -o stg -g stg
- keepdir /var/lib/stargazer
- fi
- fi
-
- if use doc ; then
- # Install files into docs directory
- dodoc "${S}"/projects/stargazer/inst/var/base.dia
- dodoc "${S}"/doc/proto_client.gif
- dodoc "${S}"/doc/proto_server.gif
-
- # Install html documentation
- docinto html/xmlrpc
- dohtml -r "${S}"/doc/xmlrpc/book/
- fi
-
- if use examples ; then
- # Install files into specified directory
- insinto /usr/share/stargazer
- doins -r "${S}"/projects/stargazer/scripts
- doins "${S}"/doc/xmlrpc.php
- fi
-
- if use sgconv ; then
- cd "${S}"/projects/sgconv || die "cd to sgconv project failed"
-
- emake DESTDIR="${D}" PREFIX="${D}" install
-
- # Install files into specified directory
- insinto /etc/stargazer
- doins "${S}"/projects/sgconv/sgconv.conf
-
- # Install manual page
- doman "${FILESDIR}"/mans/sgconv.1
- fi
-
- if use radius ; then
- cd "${S}"/projects/rlm_stg || die "cd to rlm_stg project failed"
-
- emake DESTDIR="${D}" PREFIX="${D}" install
- fi
-
- if use rscriptd ; then
- cd "${S}"/projects/rscriptd || die "cd to rscriptd project failed"
-
- emake DESTDIR="${D}" PREFIX="${D}" install
-
- # Install Gentoo init script
- doinitd "${FILESDIR}"/rscriptd
-
- # Correct permissions for file
- fperms 0640 /etc/stargazer/rscriptd.conf
-
- # Install manual page
- doman "${FILESDIR}"/mans/rscriptd.8
- fi
-
- if use sgauth ; then
- cd "${S}"/projects/sgauth || die "cd to sgauth project failed"
-
- emake DESTDIR="${D}" PREFIX="${D}" install
-
- # Correct permissions for file
- fperms 0640 /etc/stargazer/sgauth.conf
-
- # Install manual page
- doman "${FILESDIR}"/mans/sgauth.8
- fi
-
- if use sgconf ; then
- cd "${S}"/projects/sgconf || die "cd to sgconf project failed"
-
- emake DESTDIR="${D}" PREFIX="${D}" install
-
- # Install manual page
- doman "${FILESDIR}"/mans/sgconf.1
- fi
-
- if use sgconf_xml ; then
- cd "${S}"/projects/sgconf_xml || die "cd to sgconf_xml project failed"
-
- emake DESTDIR="${D}" PREFIX="${D}" install
-
- # Install manual page
- doman "${FILESDIR}"/mans/sgconf_xml.1
- fi
-
- if use stargazer ; then
- cd "${S}"/projects/stargazer || die "cd to stargazer project failed"
-
- emake DESTDIR="${D}" PREFIX="${D}" install
-
- # Install docs
- dodoc BUGS CHANGES README TODO
-
- # Install and rename Gentoo init script
- newinitd "${S}"/projects/stargazer/inst/linux/etc/init.d/stargazer.gentoo stargazer
-
- # Install manual page
- doman "${FILESDIR}"/mans/stargazer.8
-
- # Install files needed for module_store_files
- if use module_store_files ; then
- # Install files into specified directory
- insinto /var/lib
- doins -r "${S}"/projects/stargazer/inst/var/stargazer
-
- # Correct user and group for files and directories
- fowners -R stg:stg /var/lib/stargazer
- fi
-
- if use module_store_firebird ; then
- # Install files into specified directory
- insinto /usr/share/stargazer/db/firebird
- doins \
- "${S}"/projects/stargazer/inst/var/00-base-00.sql \
- "${S}"/projects/stargazer/inst/var/00-alter-01.sql
- fi
-
- if use module_store_mysql ; then
- # Install file into specified directory
- insinto /usr/share/stargazer/db/mysql
- doins "${S}"/projects/stargazer/inst/var/00-mysql-01.sql
- fi
-
- if use module_store_postgres ; then
- # Install files into specified directory
- insinto /usr/share/stargazer/db/postgresql
- doins \
- "${S}"/projects/stargazer/inst/var/00-base-00.postgresql.sql \
- "${S}"/projects/stargazer/inst/var/00-alter-01.postgresql.sql
- fi
-
- if use module_other_smux ; then
- # Install files into specified directory
- insinto /usr/share/snmp/mibs
- doins "${S}"/projects/stargazer/plugins/other/smux/STG-MIB.mib
- fi
-
- if use module_other_remote_script ; then
- # Create subnets file based on example from mod_remote_script.conf
- grep 192 "${S}"/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf | sed 's/# //' > "${D}"/etc/stargazer/subnets
-
- # Correct permissions for file
- fperms 0640 /etc/stargazer/subnets
- fi
-
- # Correct permissions for files
- fperms 0640 \
- /etc/stargazer/rules \
- /etc/stargazer/stargazer.conf
-
- # Install files into specified directory for selected modules
- insinto /etc/stargazer/conf-available.d
- insopts -m 0640
-
- for module in ${!MODULES[@]} ; do
- use $module && doins "${S}"/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/${MODULES[$module]#*:}.conf
- done
-
- # Create symlinks of configs for selected modules
- for module in ${!MODULES[@]} ; do
- use $module && dosym /etc/stargazer/conf-available.d/${MODULES[$module]#*:}.conf /etc/stargazer/conf-enabled.d/${MODULES[$module]#*:}.conf
- done
- fi
-
- # Correct user and group for files and directories
- ( use sgconv || use rscriptd || use sgauth || use stargazer ) && fowners -R stg:stg /etc/stargazer
-
- # Put the files in the right folder to support multilib
- if [ ! -e "${ED}"/usr/$(get_libdir) ] ; then
- mv "${ED}"/usr/lib/ "${ED}"/usr/$(get_libdir) || die "Failed to move library directory for multilib support"
- fi
-}
-
-pkg_setup() {
- # Add user and group to system only when necessary
- if use sgconv || use rscriptd || use sgauth || use stargazer ; then
- enewgroup stg
-
- # Add stg user to system (no home directory specified, because otherwise it will be result in stg:root ownership on it)
- enewuser stg -1 -1 -1 stg
- fi
-}
-
-pkg_postinst() {
- if use sgconv ; then
- einfo "\nSgconv:"
- einfo "----------"
- einfo " For further use of sgconv please edit /etc/stargazer/sgconv.conf depending on your needs."
- fi
-
- if use radius ; then
- einfo "\nRadius:"
- einfo "-------"
- einfo " For further use of radius, emerge net-dialup/freeradius.\n"
-
- einfo " Example config:\n"
-
- einfo " stg {"
- einfo " local_port = 6667"
- einfo " server = localhost"
- einfo " port = 6666"
- einfo " password = 123456"
- einfo " }\n"
-
- einfo " You should place 'stg' into section Instantiate, Authorize."
- einfo " In section Authentificate 'stg' should go in sub-section Auth-Type before other authentifications modules:\n"
-
- einfo " Auth-Type PAP {"
- einfo " stg"
- einfo " pap"
- einfo " }\n"
-
- einfo " It also may be used in section Accounting and Post-Auth."
-
- use module_auth_freeradius || einfo "\n For use RADIUS data processing you should also enable USE-flag module_auth_freeradius."
- fi
-
- if use rscriptd ; then
- einfo "\nRemote Script Executer:"
- einfo "-----------------------"
- einfo " For further use of rscriptd please edit /etc/stargazer/rscriptd.conf depending on your needs."
- einfo " You have to change 'Password' field at least."
- fi
-
- if use sgauth ; then
- einfo "\nSgauth:"
- einfo "-------"
- einfo " For further use of sgauth please edit /etc/stargazer/sgauth.conf depending on your needs."
- einfo " You have to change 'ServerName', 'Login', 'Password' fields at least."
- fi
-
- if use sgconf ; then
- einfo "\nSgconf:"
- einfo "-------"
- use module_config_sgconfig || einfo " For further use of sgconf utility you should also enable USE-flag module_config_sgconfig."
- fi
-
- if use sgconf_xml ; then
- einfo "\nSgconf_xml:"
- einfo "-----------"
- use module_config_rpcconfig || einfo " For further use of sgconf_xml utility you should also enable USE-flag module_config_rpcconfig."
- fi
-
- if use stargazer ; then
- einfo "\nStargazer:"
- einfo "----------"
- einfo " Modules availability:\n"
-
- if use module_auth_always_online ; then
- einfo " * module_auth_always_online available."
- fi
-
- if use module_auth_internet_access ; then
- einfo " * module_auth_internet_access available."
- fi
-
- if use module_auth_freeradius ; then
- einfo " * module_auth_freeradius available.\n"
- einfo " For further use of module, emerge net-dialup/freeradius.\n"
- use radius || einfo "\n For use RADIUS data processing you should also enable use USE-flag radius."
- fi
-
- if use module_capture_ipq ; then
- einfo " * module_capture_ipq available."
- fi
-
- if use module_capture_ether ; then
- einfo " * module_capture_ether available."
- fi
-
- if use module_capture_netflow ; then
- einfo " * module_capture_netflow available.\n"
- einfo " For further use of module, emerge net-firewall/ipt_netflow or net-analyzer/softflowd.\n"
- fi
-
- if use module_config_sgconfig ; then
- einfo " * module_config_sgconfig available."
- fi
-
- if use module_config_rpcconfig ; then
- einfo " * module_config_rpcconfig available.\n"
- einfo " KNOWN BUG: Sometimes you can't configure Stargazer through xml-based configurator,"
- einfo " because module is not responding."
- einfo " This bug is introduced by xmlrpc-c library. This bug proceeds very rare, but it still exists.\n"
- fi
-
- if use module_other_ping ; then
- einfo " * module_other_ping available."
- fi
-
- if use module_other_smux ; then
- einfo " * module_other_smux available.\n"
- einfo " For further use of module emerge net-analyzer/net-snmp.\n"
- fi
-
- if use module_other_remote_script ; then
- einfo " * module_other_remote_script available.\n"
- einfo " Don't forget to edit /etc/stargazer/subnets file depending on your needs."
- fi
-
- if use module_store_files ; then
- einfo " * module_store_files available.\n"
- einfo " Necessary and sufficient rights to the directory /var/lib/stargazer for this backend is 0755."
- einfo " You may fix it if needed.\n"
- fi
-
- if use module_store_firebird ; then
- einfo " * module_store_firebird available.\n"
- einfo " Necessary and sufficient rights to the directory /var/lib/stargazer for this backend is 0775."
- einfo " Check that it was so, and fix it if needed."
- einfo " You should add 'firebird' user to stg group:\n"
- einfo " # usermod -a -G stg firebird\n"
- einfo " and restart firebird:\n"
- einfo " # /etc/init.d/firebird restart\n"
- einfo " Stargazer DB schema for Firebird is here: /usr/share/stargazer/db/firebird"
- einfo " For new setup you should execute 00-base-00.sql:\n"
- einfo " # fbsql -q -i /usr/share/stargazer/db/firebird/00-base-00.sql\n"
- einfo " For upgrade from version 2.406 you should execute 00-alter-01.sql:\n"
- einfo " # fbsql -q -u <username> -p <password> -d <database> -i /usr/share/stargazer/db/firebird/00-alter-01.sql\n"
- fi
-
- if use module_store_mysql ; then
- einfo " * module_store_mysql available.\n"
- einfo " For upgrade from version 2.406 you should execute 00-mysql-01.sql:\n"
- einfo " # mysql -h <hostname> -P <port> -u <username> -p <password> <database> < /usr/share/stargazer/db/mysql/00-mysql-01.sql\n"
- fi
-
- if use module_store_postgres ; then
- einfo " * module_store_postgres available.\n"
- einfo " Stargazer DB schema for PostgresSQL is here: /usr/share/stargazer/db/postgresql"
- einfo " For new setup you should execute 00-base-00.postgresql.sql:\n"
- einfo " # psql -h <hostname> -p <port> -U <username> -d <database> -W -f /usr/share/stargazer/db/postgresql/00-base-00.postgresql.sql\n"
- einfo " For upgrade from version 2.406 you should execute 00-alter-01.sql:\n"
- einfo " # psql -h <hostname> -p <port> -U <username> -d <database> -W -f /usr/share/stargazer/db/postgresql/00-alter-01.sql\n"
- fi
-
- einfo "\n For all storage backends:\n"
- einfo " * Default admin login - admin, default admin password - 123456."
- einfo " * Default subscriber login - test, default subscriber password - 123456.\n"
- einfo "Don't run newer versions without reading their ChangeLog first,"
- einfo "it can be found in /usr/share/doc/${PF}"
- fi
-
- if use debug ; then
- ewarn "\nThis is a debug build. You should avoid to use it in production.\n"
- fi
-}