webmin-vl.spec 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324
  1. %define __spec_install_post %{nil}
  2. # Provide perl-specific find-{provides,requires}.
  3. #%define __find_provides %{_libdir}/rpm/find-provides.perl
  4. #%define __find_requires %{_libdir}/rpm/find-requires.perl
  5. Summary: A web-based administration interface for Unix systems.
  6. Summary(ja): Web ベースのシステム管理ツール
  7. Name: webmin
  8. Version: 1.470
  9. Release: 1%{?_dist_release}
  10. License: Freeware
  11. Group: Applications/Administration
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. AutoReq: false
  14. BuildArch: noarch
  15. Provides: %{name}-%{version}
  16. Requires: perl
  17. PreReq: sed chkconfig findutils fileutils initscripts grep perl-Net_SSLeay
  18. Source0: http://www.webmin.com/download/%{name}-%{version}.tar.gz
  19. Patch0: webmin-1.470-vine.patch
  20. # additional modules
  21. Source10: http://www.niemueller.de/webmin/modules/ipchains/ipchains-0.83.1.wbm.gz
  22. Source11: http://www.niemueller.de/webmin/modules/iptables/iptables-0.91.1.wbm.gz
  23. Source12: http://prdownloads.sourceforge.net/netatalk/netatalk.wbm.gz
  24. Patch7: netatalk-vine.diff
  25. Patch10: ipchains-Japanese.patch.bz2
  26. %description
  27. A web-based administration interface for Unix systems. Using Webmin you can
  28. configure DNS, Samba, NFS, local/remote filesystems and more using your
  29. web browser.
  30. After installation, enter the URL https://localhost:10000/ into your
  31. browser and login as root with your root password.
  32. NOTE THAT THIS VERSION NOW USES SECURE WEB TRANSACTIONS: YOU HAVE TO
  33. LOGIN TO "https://localhost:10000/" AND NOT "http://localhost:10000/".
  34. %description -l ja
  35. Web ベースのシステム管理ツール。Webmin を用いると、DNS, Samba, NFS,
  36. ローカルまたはリモートのファイルシステム, Apache, Postfix などの設
  37. 定を Web ブラウザにて行うことができます。
  38. インストール後、ブラウザから https://localhost:10000/ にアクセスし、
  39. root のパスワードを入力して root として入ってください。安全のため、
  40. パスワードは定期的に変更するようにしましょう。
  41. この rpm パッケージの場合、セキュリティ強化の為に、デフォルトでは
  42. 127.0.0.1 (localhost) からのみ接続できるように制限してあります。
  43. また、perl-Net_SSLeay パッケージを用いて、デフォルトで SSL による
  44. 暗号化を行うように設定しています。
  45. %prep
  46. %setup -q -a 10 -a 11 -a 12
  47. %patch0 -p1 -b .vine
  48. %patch7 -p1
  49. cd ipchains
  50. %patch10 -p1
  51. %build
  52. (find . -name '*.cgi' ; find . -name '*.pl') | perl perlpath.pl /usr/bin/perl -
  53. rm -f mount/freebsd-mounts*
  54. rm -f mount/openbsd-mounts*
  55. rm -f mount/macos-mounts*
  56. rm -f webmin-gentoo-init
  57. chmod -R og-w .
  58. %install
  59. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  60. mkdir -p %{buildroot}/usr/libexec/webmin
  61. mkdir -p %{buildroot}/etc/sysconfig/daemons
  62. mkdir -p %{buildroot}/etc/rc.d/{init.d,rc0.d,rc1.d,rc2.d,rc3.d,rc5.d,rc6.d}
  63. mkdir -p %{buildroot}/etc/pam.d
  64. cp -rp * %{buildroot}/usr/libexec/webmin
  65. cp webmin-daemon %{buildroot}/etc/sysconfig/daemons/webmin
  66. cp webmin-init %{buildroot}/etc/rc.d/init.d/webmin
  67. cp webmin-pam %{buildroot}/etc/pam.d/webmin
  68. echo rpm >%{buildroot}/usr/libexec/webmin/install-type
  69. %clean
  70. #%{rmDESTDIR}
  71. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  72. %files
  73. %defattr(-,root,root)
  74. /usr/libexec/webmin
  75. /etc/sysconfig/daemons/webmin
  76. /etc/rc.d/init.d/webmin
  77. %config /etc/pam.d/webmin
  78. %pre
  79. grep -i openlinux /etc/.issue >/dev/null 2>&1
  80. if [ -r /etc/webmin/config -a -r /var/log/webmin -a "$1" = 0 ]; then
  81. oldrpm=`rpm -q webmin 2>/dev/null`
  82. if [ "$oldrpm" != "" ]; then
  83. echo "The Caldera version of Webmin is currently installed on"
  84. echo "your system. You must remove it with the command"
  85. echo " rpm -e webmin"
  86. echo "before installing this Webmin RPM."
  87. exit 1
  88. fi
  89. fi
  90. perl <<EOD;
  91. # maketemp.pl
  92. # Create the /tmp/.webmin directory if needed
  93. \$tmp_dir = "/tmp/.webmin";
  94. if (!-d \$tmp_dir) {
  95. mkdir(\$tmp_dir, 0755) || exit 1;
  96. }
  97. chown(\$<, \$(, \$tmp_dir);
  98. chmod(0755, \$tmp_dir);
  99. @st = lstat(\$tmp_dir);
  100. if (@st && \$st[4] == \$< && (-d _) &&
  101. (\$st[2] & 0777) == 0755) {
  102. exit 0;
  103. }
  104. else {
  105. exit 1;
  106. }
  107. EOD
  108. if [ "$?" != "0" ]; then
  109. echo "Failed to create or check temp files directory /tmp/.webmin"
  110. exit 1
  111. fi
  112. perl >/tmp/.webmin/$$.check <<EOD;
  113. if (-r "/etc/.issue") {
  114. \$etc_issue = \`cat /etc/.issue\`;
  115. }
  116. elsif (-r "/etc/issue") {
  117. \$etc_issue = \`cat /etc/issue\`;
  118. }
  119. \$uname = \`uname -a\`;
  120. if (\$etc_issue =~ /Vine\\sLinux\\s2\\.1/i || \`cat /etc/vine-release 2>&1\` =~ /Vine\\s+Linux\\s+2\\.1/i) {
  121. print "oscheck='Vine Linux 2.1'\\n";
  122. }
  123. if (\$etc_issue =~ /Vine\\sLinux\\s2\\.1\\.5/i || \`cat /etc/vine-release 2>&1\` =~ /Vine\\s+Linux\\s+2\\.1\\.5/i) {
  124. print "oscheck='Vine Linux 2.1.5'\\n";
  125. }
  126. if (\$etc_issue =~ /Vine\\sLinux\\s2\\.5/i || \`cat /etc/vine-release 2>&1\` =~ /Vine\\s+Linux\\s+2\\.5\\s+/i) {
  127. print "oscheck='Vine Linux 2.5'\\n";
  128. }
  129. if (\$etc_issue =~ /Vine\\sLinux\\s2\\.6/i || \`cat /etc/vine-release 2>&1\` =~ /Vine\\s+Linux\\s+2\\.6\\s+/i) {
  130. print "oscheck='Vine Linux 2.6'\\n";
  131. }
  132. if (\$etc_issue =~ /Vine\\sLinux\\s3\\.0/i || \`cat /etc/vine-release 2>&1\` =~ /Vine\\s+Linux\\s+3\\.0\\s+/i) {
  133. print "oscheck='Vine Linux 3.0'\\n";
  134. }
  135. if (\$etc_issue =~ /Vine\\sLinux\\s3\\.1/i || \`cat /etc/vine-release 2>&1\` =~ /Vine\\s+Linux\\s+3\\.1\\s+/i) {
  136. print "oscheck='Vine Linux 3.1'\\n";
  137. }
  138. if (\$etc_issue =~ /Vine\\sLinux\\s3\\.2/i || \`cat /etc/vine-release 2>&1\` =~ /Vine\\s+Linux\\s+3\\.2\\s+/i) {
  139. print "oscheck='Vine Linux 3.2'\\n";
  140. }
  141. if (\$etc_issue =~ /Vine\\sLinux\\s4\\.0/i || \`cat /etc/vine-release 2>&1\` =~ /Vine\\s+Linux\\s+4\\.0\\s+/i) {
  142. print "oscheck='Vine Linux 4.0'\\n";
  143. }
  144. if (\$etc_issue =~ /Vine\\sLinux\\s4\\.1/i || \`cat /etc/vine-release 2>&1\` =~ /Vine\\s+Linux\\s+4\\.1\\s+/i) {
  145. print "oscheck='Vine Linux 4.1'\\n";
  146. }
  147. if (\$etc_issue =~ /Vine\\sLinux\\s4\\.2/i || \`cat /etc/vine-release 2>&1\` =~ /Vine\\s+Linux\\s+4\\.2\\s+/i) {
  148. print "oscheck='Vine Linux 4.2'\\n";
  149. }
  150. if (\$etc_issue =~ /Vine\\sLinux\\s5\\.0/i || \`cat /etc/vine-release 2>&1\` =~ /Vine\\s+Linux\\s+5\\.0\\s+/i) {
  151. print "oscheck='Vine Linux 5.0'\\n";
  152. }
  153. if (\$uname =~ /SunOS.*\\s5\\.5\\.1\\s/i) {
  154. print "oscheck='Sun Solaris 2.5.1'\\n";
  155. }
  156. if (\$uname =~ /SunOS.*\\s5\\.6\\s/i) {
  157. print "oscheck='Sun Solaris 2.6'\\n";
  158. }
  159. if (\$uname =~ /SunOS.*\\s5\\.7\\s/i) {
  160. print "oscheck='Sun Solaris 7'\\n";
  161. }
  162. if (\$uname =~ /SunOS.*\\s5\\.8\\s/i) {
  163. print "oscheck='Sun Solaris 8'\\n";
  164. }
  165. if (\$uname =~ /SunOS.*\\s5\\.9\\s/i) {
  166. print "oscheck='Sun Solaris 9'\\n";
  167. }
  168. if (\$uname =~ /SunOS.*\\s5\\.10\\s/i) {
  169. print "oscheck='Sun Solaris 10'\\n";
  170. }
  171. if (\$etc_issue =~ /OpenLinux.*eServer.*\\n.*\\s2\\.3\\s/i) {
  172. print "oscheck='Caldera OpenLinux eServer 2.3'\\n";
  173. }
  174. if (\$etc_issue =~ /OpenLinux.*\\n.*\\s2\\.3\\s/i) {
  175. print "oscheck='Caldera OpenLinux 2.3'\\n";
  176. }
  177. if (\$etc_issue =~ /OpenLinux.*\\n.*\\s2\\.4\\s/i) {
  178. print "oscheck='Caldera OpenLinux 2.4'\\n";
  179. }
  180. if (\$etc_issue =~ /OpenLinux.*\\n.*\\s2\\.5\\s/i || \$etc_issue =~ /Caldera.*2000/i) {
  181. print "oscheck='Caldera OpenLinux 2.5'\\n";
  182. }
  183. if (\$etc_issue =~ /OpenLinux.*3\\.1/i) {
  184. print "oscheck='Caldera OpenLinux 3.1'\\n";
  185. }
  186. if (\$etc_issue =~ /red\\s*hat.*\\s5\\.0/i) {
  187. print "oscheck='Redhat Linux 5.0'\\n";
  188. }
  189. if (\$etc_issue =~ /red\\s*hat.*\\s5\\.1/i) {
  190. print "oscheck='Redhat Linux 5.1'\\n";
  191. }
  192. if (\$etc_issue =~ /red\\s*hat.*\\s5\\.2/i) {
  193. print "oscheck='Redhat Linux 5.2'\\n";
  194. }
  195. if (\$etc_issue =~ /red\\s*hat.*\\s6\\.0/i || \`cat /etc/redhat-release 2>/dev/null\` =~ /6\\.0/) {
  196. print "oscheck='Redhat Linux 6.0'\\n";
  197. }
  198. if (\$etc_issue =~ /red\\s*hat.*\\s6\\.1/i || \`cat /etc/redhat-release 2>/dev/null\` =~ /6\\.1/) {
  199. print "oscheck='Redhat Linux 6.1'\\n";
  200. }
  201. if (\$etc_issue =~ /red\\s*hat.*\\s6\\.2/i || \`cat /etc/redhat-release 2>/dev/null\` =~ /6\\.2/) {
  202. print "oscheck='Redhat Linux 6.2'\\n";
  203. }
  204. if (\$etc_issue =~ /red\\s*hat.*\\s7\\.0/i || \`cat /etc/redhat-release 2>/dev/null\` =~ /7\\.0/) {
  205. print "oscheck='Redhat Linux 7.0'\\n";
  206. }
  207. if (\$etc_issue =~ /red\\s*hat.*\\s7\\.1/i || \`cat /etc/redhat-release 2>/dev/null\` =~ /7\\.1/) {
  208. print "oscheck='Redhat Linux 7.1'\\n";
  209. }
  210. if (\$etc_issue =~ /red\\s*hat.*\\s7\\.2/i || \`cat /etc/redhat-release 2>/dev/null\` =~ /7\\.2/) {
  211. print "oscheck='Redhat Linux 7.2'\\n";
  212. }
  213. if (\$etc_issue =~ /red\\s*hat.*\\s7\\.3\\s/i || \`cat /etc/redhat-release 2>/dev/null\` =~ /7\\.3\\s/ || \$etc_issue =~ /VMware\\s+ESX\\s+Server\\s+2\\.0/i) {
  214. print "oscheck='Redhat Linux 7.3'\\n";
  215. }
  216. if (\$etc_issue =~ /red\\s*hat.*\\s8\\.0\\s/i || \`cat /etc/redhat-release 2>/dev/null\` =~ /\\s8\\.0\\s/) {
  217. print "oscheck='Redhat Linux 8.0'\\n";
  218. }
  219. if (\$etc_issue =~ /red\\s*hat.*\\s9(\\.0)?\\s/i || \`cat /etc/redhat-release 2>/dev/null\` =~ /red\\s*hat.*\\s9(\\.0)?\\s/i) {
  220. print "oscheck='Redhat Linux 9.0'\\n";
  221. }
  222. if ( \$etc_issue =~ /red\\s*hat.*\\s10(\\.0)?\\s/i || \`cat /etc/redhat-release /etc/fedora-release 2>/dev/null\` =~ /red\\s*hat.*\\s10(\\.0)?\\s/i || \`cat /etc/redhat-release /etc/fedora-release 2>/dev/null\` =~ /Fedora.*\\s1\\s/i) {
  223. print "oscheck='Redhat Linux Fedora 1'\\n";
  224. }
  225. if ( \`cat /etc/redhat-release /etc/fedora-release 2>/dev/null\` =~ /Fedora.*(\\s2\\s)|(FC2)/i || \`cat /etc/redhat-release /etc/fedora-release 2>/dev/null\` =~ /X\\/OS.*release\\s2\\.0\\s/i || \`cat /etc/alphacore-release 2>/dev/null\` =~ /Alpha\\s*Core\\s+release\\s+0\\.9\\s/i) {
  226. print "oscheck='Redhat Linux Fedora 2'\\n";
  227. }
  228. if ( \`cat /etc/redhat-release /etc/fedora-release 2>/dev/null\` =~ /Fedora.*(\\s3\\s)|(FC3)/i || \`cat /etc/redhat-release /etc/fedora-release 2>/dev/null\` =~ /X\\/OS.*release\\s3\\.0\\s/i) {
  229. print "oscheck='Redhat Linux Fedora 3'\\n";
  230. }
  231. if (\`cat /etc/redhat-release 2>/dev/null\` =~ /(Advanced\\s+Server.*2\\.1)|(AS.*2\\.1)/i) {
  232. print "oscheck='Redhat Linux 2.1AS'\\n";
  233. }
  234. if (\`cat /etc/redhat-release 2>/dev/null\` =~ /ES.*2\\.1/) {
  235. print "oscheck='Redhat Linux 2.1ES'\\n";
  236. }
  237. if (\`cat /etc/redhat-release 2>/dev/null\` =~ /WS.*2\\.1/) {
  238. print "oscheck='Redhat Linux 2.1WS'\\n";
  239. }
  240. if (\`cat /etc/redhat-release 2>/dev/null\` =~ /(3\\.0AS)|(2\\.9\\.5AS)|(AS\\s+release\\s+3)/i) {
  241. print "oscheck='Redhat Linux 3.0AS'\\n";
  242. }
  243. if (\`cat /etc/redhat-release 2>/dev/null\` =~ /ES\\s+release\\s+3/ || \`cat /etc/whitebox-release 2>/dev/null\` =~ /White\\s+Box\\s+Enterprise\\s+Linux\\s+release\\s+3/i || \`cat /etc/redhat-release 2>/dev/null\` =~ /Tao\\s+Linux\\s+release\\s+1/ || \`cat /etc/redhat-release 2>/dev/null\` =~ /CentOS\\s+release\\s+3/ || \`cat /etc/redhat-release 2>/dev/null\` =~ /Scientific\\s+Linux.*\\s+release\\s+3/i) {
  244. print "oscheck='Redhat Linux 3.0ES'\\n";
  245. }
  246. if (\`cat /etc/redhat-release 2>/dev/null\` =~ /WS\\s+release\\s+3/) {
  247. print "oscheck='Redhat Linux 3.0WS'\\n";
  248. }
  249. if (\`cat /etc/redhat-release 2>/dev/null\` =~ /Desktop\\s+release\\s+3/i) {
  250. print "oscheck='Redhat Linux Desktop 3'\\n";
  251. }
  252. if (\`cat /etc/slackware-version 2>/dev/null\` =~ /7\\.0/) {
  253. print "oscheck='Slackware Linux 7.0'\\n";
  254. }
  255. if (\`cat /etc/slackware-version 2>/dev/null\` =~ /7\\.1/) {
  256. print "oscheck='Slackware Linux 7.1'\\n";
  257. }
  258. if (\`cat /etc/slackware-version 2>/dev/null\` =~ /8\\.0/) {
  259. print "oscheck='Slackware Linux 8.0'\\n";
  260. }
  261. if (\`cat /etc/slackware-version 2>/dev/null\` =~ /8\\.1/) {
  262. print "oscheck='Slackware Linux 8.1'\\n";
  263. }
  264. if (\`cat /etc/slackware-version 2>/dev/null\` =~ /9\\.0/) {
  265. print "oscheck='Slackware Linux 9.0'\\n";
  266. }
  267. if (\`cat /etc/slackware-version 2>/dev/null\` =~ /9\\.1/) {
  268. print "oscheck='Slackware Linux 9.1'\\n";
  269. }
  270. if (\`cat /etc/slackware-version 2>/dev/null\` =~ /10\\.0/) {
  271. print "oscheck='Slackware Linux 10.0'\\n";
  272. }
  273. if (\`cat /etc/slackware-version 2>/dev/null\` =~ /10\\.1/) {
  274. print "oscheck='Slackware Linux 10.1'\\n";
  275. }
  276. if (\$etc_issue =~ /Debian.*\\s2\\.0\\s/i) {
  277. print "oscheck='Debian Linux 2.0'\\n";
  278. }
  279. if (\$etc_issue =~ /Debian.*\\s2\\.1\\s/i) {
  280. print "oscheck='Debian Linux 2.1'\\n";
  281. }
  282. if (\$etc_issue =~ /Debian.*\\s2\\.2\\s/i) {
  283. print "oscheck='Debian Linux 2.2'\\n";
  284. }
  285. if (\$etc_issue =~ /Debian.*\\s3\\.0\\s/i) {
  286. print "oscheck='Debian Linux 3.0'\\n";
  287. }
  288. if (\$etc_issue =~ /Debian.*\\s3\\.1\\s/i) {
  289. print "oscheck='Debian Linux 3.1'\\n";
  290. }
  291. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /6\\.0/ || \$etc_issue =~ /SuSE\\s+Linux\\s+6\\.0\\s/i) {
  292. print "oscheck='SuSE Linux 6.0'\\n";
  293. }
  294. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /6\\.1/ || \$etc_issue =~ /SuSE\\s+Linux\\s+6\\.1\\s/i) {
  295. print "oscheck='SuSE Linux 6.1'\\n";
  296. }
  297. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /6\\.2/ || \$etc_issue =~ /SuSE\\s+Linux\\s+6\\.2\\s/i) {
  298. print "oscheck='SuSE Linux 6.2'\\n";
  299. }
  300. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /6\\.3/ || \$etc_issue =~ /SuSE\\s+Linux\\s+6\\.3\\s/i) {
  301. print "oscheck='SuSE Linux 6.3'\\n";
  302. }
  303. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /6\\.4/ || \$etc_issue =~ /SuSE\\s+Linux\\s+6\\.4\\s/i) {
  304. print "oscheck='SuSE Linux 6.4'\\n";
  305. }
  306. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /7\\.0/ || \$etc_issue =~ /SuSE\\s+Linux\\s+7\\.0\\s/i || \$etc_issue =~ /SuSE\\s+eMail\\s+Server/i || \$etc_issue =~ /SuSE\\s+SLES-7/i) {
  307. print "oscheck='SuSE Linux 7.0'\\n";
  308. }
  309. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /7\\.1/ || \$etc_issue =~ /SuSE\\s+Linux\\s+7\\.1\\s/i) {
  310. print "oscheck='SuSE Linux 7.1'\\n";
  311. }
  312. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /7\\.2/ || \$etc_issue =~ /SuSE\\s+Linux\\s+7\\.2\\s/i) {
  313. print "oscheck='SuSE Linux 7.2'\\n";
  314. }
  315. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /7\\.3/ || \$etc_issue =~ /SuSE\\s+Linux\\s+7\\.3\\s/i) {
  316. print "oscheck='SuSE Linux 7.3'\\n";
  317. }
  318. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /8\\.0/ || \$etc_issue =~ /SuSE\\s+Linux\\s+8\\.0\\s/i) {
  319. print "oscheck='SuSE Linux 8.0'\\n";
  320. }
  321. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /8\\.1/ || \$etc_issue =~ /SuSE\\s+Linux\\s+8\\.1\\s/i) {
  322. print "oscheck='SuSE Linux 8.1'\\n";
  323. }
  324. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /8\\.2/ || \$etc_issue =~ /SuSE\\s+Linux\\s+8\\.2\\s/i) {
  325. print "oscheck='SuSE Linux 8.2'\\n";
  326. }
  327. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /(9\\.0|\\s9\\s)/ || \$etc_issue =~ /SuSE\\s+Linux((\\s9\\.0\\s)|(\\s9\\s))/i || \$etc_issue =~ /SuSE\\s+SLES-9/i) {
  328. print "oscheck='SuSE Linux 9.0'\\n";
  329. }
  330. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /9\\.1/ || \$etc_issue =~ /SuSE\\s+Linux\\s+9\\.1\\s/i) {
  331. print "oscheck='SuSE Linux 9.1'\\n";
  332. }
  333. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /9\\.2/ || \$etc_issue =~ /SuSE\\s+Linux\\s+9\\.2\\s/i) {
  334. print "oscheck='SuSE Linux 9.2'\\n";
  335. }
  336. if ( \`cat /etc/SLOX-release 2>/dev/null\` =~ /VERSION\\s+=\\s+4\\.0/i) {
  337. print "oscheck='SuSE Linux OpenExchange 4.0'\\n";
  338. }
  339. if (\`cat /etc/UnitedLinux-release 2>/dev/null\` =~ /1\\.0/) {
  340. print "oscheck='United Linux 1.0'\\n";
  341. }
  342. if (\$etc_issue =~ /Corel\\s+LINUX\\s+1\\.0/i) {
  343. print "oscheck='Corel Linux 1.0'\\n";
  344. }
  345. if (\$etc_issue =~ /Corel\\s+LINUX\\s+1\\.1/i) {
  346. print "oscheck='Corel Linux 1.1'\\n";
  347. }
  348. if (\$etc_issue =~ /Corel\\s+LINUX\\s+1\\.2/i) {
  349. print "oscheck='Corel Linux 1.2'\\n";
  350. }
  351. if (\`cat /etc/turbolinux-release 2>/dev/null\` =~ /release\\s+4\\.0\\s+/i) {
  352. print "oscheck='TurboLinux 4.0'\\n";
  353. }
  354. if (\`cat /etc/turbolinux-release 2>/dev/null\` =~ /release\\s+6\\.0\\s+/i || \`cat /etc/turbolinux-release 2>/dev/null\` =~ /release\\s+6\\s+advanced/i) {
  355. print "oscheck='TurboLinux 6.0'\\n";
  356. }
  357. if (\`cat /etc/turbolinux-release 2>/dev/null\` =~ /release\\s+6\\.1\\s+/i) {
  358. print "oscheck='TurboLinux 6.1'\\n";
  359. }
  360. if (\`cat /etc/turbolinux-release 2>/dev/null\` =~ /release\\s+6\\.5\\s+/i) {
  361. print "oscheck='TurboLinux 6.5'\\n";
  362. }
  363. if (\`cat /etc/turbolinux-release 2>/dev/null\` =~ /7\\.0/i) {
  364. print "oscheck='TurboLinux 7.0'\\n";
  365. }
  366. if (\$etc_issue =~ /Cobalt\\s+Linux\\s+release\\s+2.2/i || \`cat /etc/cobalt-release 2>/dev/null\` =~ /2\\.2/) {
  367. print "oscheck='Cobalt Linux 2.2'\\n";
  368. }
  369. if (\$etc_issue =~ /Cobalt\\s+Linux\\s+release\\s+4.0/i || \`cat /etc/cobalt-release 2>/dev/null\` =~ /4\\.0/) {
  370. print "oscheck='Cobalt Linux 4.0'\\n";
  371. }
  372. if (\$etc_issue =~ /Cobalt\\s+Linux\\s+release\\s+5.0/i || \`cat /etc/cobalt-release 2>/dev/null\` =~ /5\\.0/) {
  373. print "oscheck='Cobalt Linux 5.0'\\n";
  374. }
  375. if (\$etc_issue =~ /Cobalt\\s+Linux\\s+release\\s+6.0/i || \`cat /etc/cobalt-release 2>/dev/null\` =~ /6\\.0/) {
  376. print "oscheck='Cobalt Linux 6.0'\\n";
  377. }
  378. if (\`uname -r\` =~ /2.2.16/ && -r "/etc/cobalt-release") {
  379. print "oscheck='Cobalt Linux 6.4'\\n";
  380. }
  381. if (\`cat /etc/cobalt-release 2>/dev/null\` =~ /7\\.0/) {
  382. print "oscheck='Cobalt Linux 7.0'\\n";
  383. }
  384. if (\$etc_issue =~ /Mandrake\\s+release\\s+5\\.3/i) {
  385. print "oscheck='Mandrake Linux 5.3'\\n";
  386. }
  387. if (\$etc_issue =~ /Mandrake\\s+release\\s+6\\.0/i) {
  388. print "oscheck='Mandrake Linux 6.0'\\n";
  389. }
  390. if (\$etc_issue =~ /Mandrake\\s+release\\s+6\\.1/i) {
  391. print "oscheck='Mandrake Linux 6.1'\\n";
  392. }
  393. if (\$etc_issue =~ /Mandrake\\s+release\\s+7\\.0/i) {
  394. print "oscheck='Mandrake Linux 7.0'\\n";
  395. }
  396. if (\$etc_issue =~ /Mandrake\\s+release\\s+7\\.1/i) {
  397. print "oscheck='Mandrake Linux 7.1'\\n";
  398. }
  399. if (\$etc_issue =~ /Mandrake\\s+release\\s+7\\.2/i) {
  400. print "oscheck='Mandrake Linux 7.2'\\n";
  401. }
  402. if (\`cat /etc/mandrake-release 2>/dev/null\` =~ /8\\.0/ || \$etc_issue =~ /Mandrake\\s+release\\s+8\\.0/i) {
  403. print "oscheck='Mandrake Linux 8.0'\\n";
  404. }
  405. if (\`cat /etc/mandrake-release 2>/dev/null\` =~ /8\\.1/ || \$etc_issue =~ /Mandrake\\s+Linux\\s+release\\s+8\\.1/i) {
  406. print "oscheck='Mandrake Linux 8.1'\\n";
  407. }
  408. if (\`cat /etc/mandrake-release 2>/dev/null\` =~ /8\\.2/ || \$etc_issue =~ /Mandrake\\s+Linux\\s+release\\s+8\\.2/i) {
  409. print "oscheck='Mandrake Linux 8.2'\\n";
  410. }
  411. if (\`cat /etc/mandrake-release 2>/dev/null\` =~ /9\\.0/ || \$etc_issue =~ /Mandrake\\s+Linux\\s+release\\s+9\\.0/i) {
  412. print "oscheck='Mandrake Linux 9.0'\\n";
  413. }
  414. if (\`cat /etc/mandrake-release 2>/dev/null\` =~ /9\\.1/ || \$etc_issue =~ /Mandrake\\s+Linux\\s+release\\s+9\\.1/i) {
  415. print "oscheck='Mandrake Linux 9.1'\\n";
  416. }
  417. if (\`cat /etc/mandrake-release 2>/dev/null\` =~ /9\\.2/ || \$etc_issue =~ /Mandrake\\s+Linux\\s+release\\s+9\\.2/i) {
  418. print "oscheck='Mandrake Linux 9.2'\\n";
  419. }
  420. if (\`cat /etc/mandrake-release 2>/dev/null\` =~ /10\\.0/ || \$etc_issue =~ /Mandrake\\s+Linux\\s+release\\s+10\\.0/i) {
  421. print "oscheck='Mandrake Linux 10.0'\\n";
  422. }
  423. if (\`cat /etc/mandrake-release 2>/dev/null\` =~ /10\\.1/ || \$etc_issue =~ /Mandrake\\s+Linux\\s+release\\s+10\\.1/i) {
  424. print "oscheck='Mandrake Linux 10.1'\\n";
  425. }
  426. if (\$etc_issue =~ /Mandrake\\s+Corporate\\s+Server\\s+release\\s+1\\.0/i) {
  427. print "oscheck='Mandrake Linux Corporate Server 1.0'\\n";
  428. }
  429. if (\$etc_issue =~ /Conectiva.*Linux.*3\\.0/i) {
  430. print "oscheck='Conectiva Linux 3.0'\\n";
  431. }
  432. if (\$etc_issue =~ /Conectiva.*Linux.*4\\.0/i) {
  433. print "oscheck='Conectiva Linux 4.0'\\n";
  434. }
  435. if (\$etc_issue =~ /Conectiva.*Linux.*4\\.1/i) {
  436. print "oscheck='Conectiva Linux 4.1'\\n";
  437. }
  438. if (\$etc_issue =~ /Conectiva.*Linux.*4\\.2/i) {
  439. print "oscheck='Conectiva Linux 4.2'\\n";
  440. }
  441. if (\$etc_issue =~ /Conectiva.*Linux.*5\\.0/i) {
  442. print "oscheck='Conectiva Linux 5.0'\\n";
  443. }
  444. if (\$etc_issue =~ /Conectiva.*Linux.*5\\.1/i) {
  445. print "oscheck='Conectiva Linux 5.1'\\n";
  446. }
  447. if (\$etc_issue =~ /Conectiva.*Linux.*6\\.0/i) {
  448. print "oscheck='Conectiva Linux 6.0'\\n";
  449. }
  450. if (\$etc_issue =~ /Conectiva.*Linux.*7\\.0/i) {
  451. print "oscheck='Conectiva Linux 7.0'\\n";
  452. }
  453. if (\$etc_issue =~ /Conectiva.*Linux.*\\s8/i) {
  454. print "oscheck='Conectiva Linux 8'\\n";
  455. }
  456. if (\$etc_issue =~ /Conectiva.*Linux.*\\s9/i) {
  457. print "oscheck='Conectiva Linux 9'\\n";
  458. }
  459. if (\$etc_issue =~ /Conectiva.*Linux.*\\s10\\s/i) {
  460. print "oscheck='Conectiva Linux 10'\\n";
  461. }
  462. if (\$etc_issue =~ /Thiz.*Linux.*\\s5\\.0/i) {
  463. print "oscheck='ThizLinux Desktop 5.0'\\n";
  464. }
  465. if (\$etc_issue =~ /Thiz.*Linux.*\\s6\\.0/i) {
  466. print "oscheck='ThizLinux Desktop 6.0'\\n";
  467. }
  468. if (\$etc_issue =~ /Thiz.*Linux.*\\s6\\.2/i) {
  469. print "oscheck='ThizLinux Desktop 6.2'\\n";
  470. }
  471. if (\$etc_issue =~ /Thiz.*Linux.*\\s7\\.0/i) {
  472. print "oscheck='ThizLinux Desktop 7.0'\\n";
  473. }
  474. if (\$etc_issue =~ /Thiz.*\\s?Server.*\\s4\\.3/i) {
  475. print "oscheck='ThizServer 4.3'\\n";
  476. }
  477. if (\$etc_issue =~ /Thiz.*\\s?Server.*\\s6\\.0/i) {
  478. print "oscheck='ThizServer 6.0'\\n";
  479. }
  480. if (\$etc_issue =~ /Thiz.*\\s?Server.*\\s7\\.0/i) {
  481. print "oscheck='ThizServer 7.0'\\n";
  482. }
  483. if (\`cat /etc/msclinux-release 2>/dev/null\` =~ /2001.*January/i || \$etc_issue =~ /2001.*January/i) {
  484. print "oscheck='MSC Linux January 2001'\\n";
  485. }
  486. if (\`cat /etc/msclinux-release 2>/dev/null\` =~ /2001.*February/i || \$etc_issue =~ /2001.*February/i) {
  487. print "oscheck='MSC Linux February 2001'\\n";
  488. }
  489. if (\`cat /etc/msclinux-release 2>/dev/null\` =~ /2001.*May/i || \$etc_issue =~ /2001.*May/i) {
  490. print "oscheck='MSC Linux May 2001'\\n";
  491. }
  492. if (\`cat /etc/msclinux-release 2>/dev/null\` =~ /2001.*June/i || \$etc_issue =~ /2001.*June/i) {
  493. print "oscheck='MSC Linux June 2001'\\n";
  494. }
  495. if (\`cat /etc/msclinux-release 2>/dev/null\` =~ /2001.*August/i || \$etc_issue =~ /2001.*August/i) {
  496. print "oscheck='MSC Linux August 2001'\\n";
  497. }
  498. if (\`cat /etc/msclinux-release 2>/dev/null\` =~ /2002.*February/i || \$etc_issue =~ /2002.*February/i) {
  499. print "oscheck='MSC Linux February 2002'\\n";
  500. }
  501. if (\`cat /etc/msclinux-release 2>/dev/null\` =~ /2002.*March/i || \$etc_issue =~ /2002.*March/i) {
  502. print "oscheck='MSC Linux March 2002'\\n";
  503. }
  504. if (\`cat /etc/msclinux-release 2>/dev/null\` =~ /2002.*May/i || \$etc_issue =~ /2002.*May/i) {
  505. print "oscheck='MSC Linux May 2002'\\n";
  506. }
  507. if (\`cat /etc/msclinux-release 2>/dev/null\` =~ /2002.*July/i || \$etc_issue =~ /2002.*July/i) {
  508. print "oscheck='MSC Linux July 2002'\\n";
  509. }
  510. if (\`cat /etc/msclinux-release 2>/dev/null\` =~ /2002.*Nov/i || \$etc_issue =~ /2002.*Nov/i) {
  511. print "oscheck='MSC Linux Nov 2002'\\n";
  512. }
  513. if (\$etc_issue =~ /LinuxPPC\\s+2000/i) {
  514. print "oscheck='LinuxPPC 2000'\\n";
  515. }
  516. if (\$etc_issue =~ /Trustix.*1\\.1/i) {
  517. print "oscheck='Trustix 1.1'\\n";
  518. }
  519. if (\$etc_issue =~ /Trustix.*1\\.2/i) {
  520. print "oscheck='Trustix 1.2'\\n";
  521. }
  522. if (\$etc_issue =~ /Trustix.*1\\.5/i) {
  523. print "oscheck='Trustix 1.5'\\n";
  524. }
  525. if (\$etc_issue =~ /Trustix.*2\\.0/i || \$etc_issue =~ /Tawie\\s+Server\\s+Linux.*2\\.0/i || \$etc_issue =~ /tinysofa.*release\\s+1\\.0/i) {
  526. print "oscheck='Trustix 2.0'\\n";
  527. }
  528. if (\$etc_issue =~ /Trustix.*2\\.1/i || \$etc_issue =~ /Tawie\\s+Server\\s+Linux.*2\\.1/i) {
  529. print "oscheck='Trustix 2.1'\\n";
  530. }
  531. if (\$etc_issue =~ /Trustix.*2\\.2/i || \$etc_issue =~ /Tawie\\s+Server\\s+Linux.*2\\.2/i) {
  532. print "oscheck='Trustix 2.2'\\n";
  533. }
  534. if (\$etc_issue =~ /Trustix.*Enterprise.*2\\)/i) {
  535. print "oscheck='Trustix SE 2'\\n";
  536. }
  537. if (\$etc_issue =~ /Cendio\\s*LBS.*\\s3\\.1/i || \`cat /etc/lbs-release 2>/dev/null\` =~ /3\\.1/) {
  538. print "oscheck='Cendio LBS Linux 3.1'\\n";
  539. }
  540. if (\$etc_issue =~ /Cendio\\s*LBS.*\\s3\\.2/i || \`cat /etc/lbs-release 2>/dev/null\` =~ /3\\.2/) {
  541. print "oscheck='Cendio LBS Linux 3.2'\\n";
  542. }
  543. if (\$etc_issue =~ /Cendio\\s*LBS.*\\s3\\.3/i || \`cat /etc/lbs-release 2>/dev/null\` =~ /3\\.3/) {
  544. print "oscheck='Cendio LBS Linux 3.3'\\n";
  545. }
  546. if (\$etc_issue =~ /Cendio\\s*LBS.*\\s4\\.0/i || \`cat /etc/lbs-release 2>/dev/null\` =~ /4\\.0/) {
  547. print "oscheck='Cendio LBS Linux 4.0'\\n";
  548. }
  549. if (\$etc_issue =~ /Cendio\\s*LBS.*\\s4\\.1/i || \`cat /etc/lbs-release 2>/dev/null\` =~ /4\\.1/) {
  550. print "oscheck='Cendio LBS Linux 4.1'\\n";
  551. }
  552. if (\`cat /etc/ute-release 2>/dev/null\` =~ /Ute\\s+Linux\\s+release\\s+1\\.0/i) {
  553. print "oscheck='Ute Linux 1.0'\\n";
  554. }
  555. if (\$etc_issue =~ /Lanthan\\s+Linux\\s+release\\s+1\\.0/i || \`cat /etc/lanthan-release 2>/dev/null\` =~ /1\\.0/) {
  556. print "oscheck='Lanthan Linux 1.0'\\n";
  557. }
  558. if (\$etc_issue =~ /Lanthan\\s+Linux\\s+release\\s+2\\.0/i || \`cat /etc/lanthan-release 2>/dev/null\` =~ /2\\.0/) {
  559. print "oscheck='Lanthan Linux 2.0'\\n";
  560. }
  561. if (\$etc_issue =~ /Lanthan\\s+Linux\\s+release\\s+3\\.0/i || \`cat /etc/lanthan-release 2>/dev/null\` =~ /3\\.0/) {
  562. print "oscheck='Lanthan Linux 3.0'\\n";
  563. }
  564. if (\$etc_issue =~ /Yellow\\s+Dog\\s+Linux\\s+release\\s+2\\.0\\s+/i || \`cat /etc/yellowdog-release 2>/dev/null\` =~ /Yellow\\s+Dog\\s+Linux\\s+release\\s+2\\.0\\s+/i) {
  565. print "oscheck='Yellow Dog Linux 2.0'\\n";
  566. }
  567. if (\$etc_issue =~ /Yellow\\s+Dog\\s+Linux\\s+release\\s+2\\.1\\s+/i || \`cat /etc/yellowdog-release 2>/dev/null\` =~ /Yellow\\s+Dog\\s+Linux\\s+release\\s+2\\.1\\s+/i) {
  568. print "oscheck='Yellow Dog Linux 2.1'\\n";
  569. }
  570. if (\$etc_issue =~ /Yellow\\s+Dog\\s+Linux\\s+release\\s+2\\.2\\s+/i || \`cat /etc/yellowdog-release 2>/dev/null\` =~ /Yellow\\s+Dog\\s+Linux\\s+release\\s+2\\.2\\s+/i) {
  571. print "oscheck='Yellow Dog Linux 2.2'\\n";
  572. }
  573. if (\$etc_issue =~ /Yellow\\s+Dog\\s+Linux\\s+release\\s+2\\.3\\s+/i || \`cat /etc/yellowdog-release 2>/dev/null\` =~ /Yellow\\s+Dog\\s+Linux\\s+release\\s+2\\.3\\s+/i) {
  574. print "oscheck='Yellow Dog Linux 2.3'\\n";
  575. }
  576. if (\$etc_issue =~ /Yellow\\s+Dog\\s+Linux\\s+release\\s+3\\.0\\s+/i || \`cat /etc/yellowdog-release 2>/dev/null\` =~ /Yellow\\s+Dog\\s+Linux\\s+release\\s+3\\.0\\s+/i) {
  577. print "oscheck='Yellow Dog Linux 3.0'\\n";
  578. }
  579. if (\$etc_issue =~ /Yellow\\s+Dog\\s+Linux\\s+release\\s+4\\.0\\s+/i || \`cat /etc/yellowdog-release 2>/dev/null\` =~ /\\s4\\.0\\s/i) {
  580. print "oscheck='Yellow Dog Linux 4.0'\\n";
  581. }
  582. if (\`cat /etc/latinux-release 2>/dev/null\` =~ /Latinux\\s+8\\s/i) {
  583. print "oscheck='Corvus Latinux 8.0'\\n";
  584. }
  585. if (\$etc_issue =~ /Immunix.*\\s6\\.2/i || \`cat /etc/immunix-release 2>/dev/null\` =~ /6\\.2/) {
  586. print "oscheck='Immunix Linux 6.2'\\n";
  587. }
  588. if (\$etc_issue =~ /Immunix.*\\s7\\.0/i || \`cat /etc/immunix-release 2>/dev/null\` =~ /7\\.0/) {
  589. print "oscheck='Immunix Linux 7.0'\\n";
  590. }
  591. if (-d "/usr/portage") {
  592. print "oscheck='Gentoo Linux Any version'\\n";
  593. }
  594. if (\$etc_issue =~ /Lycoris Desktop/i) {
  595. print "oscheck='Lycoris Desktop/LX 1.0'\\n";
  596. }
  597. if (\`cat /etc/securelinux-release 2>/dev/null\` =~ /SecureLinux.*1\\.0/i) {
  598. print "oscheck='Secure Linux 1.0'\\n";
  599. }
  600. if (\`cat /etc/openna-release 2>/dev/null\` =~ /release\\s+1\\.0\\s/i) {
  601. print "oscheck='OpenNA Linux 1.0'\\n";
  602. }
  603. if (\`cat /tmp/wd/version 2>/dev/null\` =~ /2\\.1\\.0/) {
  604. print "oscheck='White Dwarf Linux 2.1.0'\\n";
  605. }
  606. if (-r "/etc/antitachyon-distribution") {
  607. print "oscheck='SoL Linux 17.00'\\n";
  608. }
  609. if (\$etc_issue =~ /coherent\\s*technology.*\\s1\\.1/i || \`cat /etc/coherent-release 2>&1\` =~ /1\\.1/) {
  610. print "oscheck='Coherent Technology Linux 1.1'\\n";
  611. }
  612. if (\$etc_issue =~ /coherent\\s*technology.*\\s1\\.2/i || \`cat /etc/coherent-release 2>&1\` =~ /1\\.2/) {
  613. print "oscheck='Coherent Technology Linux 1.2'\\n";
  614. }
  615. if (\$etc_issue =~ /coherent\\s*technology.*\\s1\\.3/i || \`cat /etc/coherent-release 2>&1\` =~ /1\\.3/) {
  616. print "oscheck='Coherent Technology Linux 1.3'\\n";
  617. }
  618. if (\$etc_issue =~ /coherent\\s*technology.*\\s2\\.0/i || \`cat /etc/coherent-release 2>&1\` =~ /2\\.0/) {
  619. print "oscheck='Coherent Technology Linux 2.0'\\n";
  620. }
  621. if (\$etc_issue =~ /coherent\\s*technology.*\\s3\\.0/i || \`cat /etc/coherent-release 2>&1\` =~ /3\\.0/) {
  622. print "oscheck='Coherent Technology Linux 3.0'\\n";
  623. }
  624. if (\$etc_issue =~ /coherent\\s*technology.*\\s3\\.1/i || \`cat /etc/coherent-release 2>&1\` =~ /3\\.1/) {
  625. print "oscheck='Coherent Technology Linux 3.1'\\n";
  626. }
  627. if (\$etc_issue =~ /coherent\\s*technology.*\\s3\\.2/i || \`cat /etc/coherent-release 2>&1\` =~ /3\\.2/) {
  628. print "oscheck='Coherent Technology Linux 3.2'\\n";
  629. }
  630. if (\$etc_issue =~ /coherent\\s*technology.*\\s3\\.3/i || \`cat /etc/coherent-release 2>&1\` =~ /3\\.3/) {
  631. print "oscheck='Coherent Technology Linux 3.3'\\n";
  632. }
  633. if (\$etc_issue =~ /coherent\\s*technology.*\\s3\\.4/i || \`cat /etc/coherent-release 2>&1\` =~ /3\\.4/) {
  634. print "oscheck='Coherent Technology Linux 3.4'\\n";
  635. }
  636. if (\$etc_issue =~ /coherent\\s*technology.*\\s3\\.5/i || \`cat /etc/coherent-release 2>&1\` =~ /3\\.5/) {
  637. print "oscheck='Coherent Technology Linux 3.5'\\n";
  638. }
  639. if (\$etc_issue =~ /coherent\\s*technology.*\\s3\\.6/i || \`cat /etc/coherent-release 2>&1\` =~ /3\\.6/) {
  640. print "oscheck='Coherent Technology Linux 3.6'\\n";
  641. }
  642. if (\$etc_issue =~ /coherent\\s*technology.*\\s3\\.7/i || \`cat /etc/coherent-release 2>&1\` =~ /3\\.7/) {
  643. print "oscheck='Coherent Technology Linux 3.7'\\n";
  644. }
  645. if (\$etc_issue =~ /coherent\\s*technology.*\\s3\\.8/i || \`cat /etc/coherent-release 2>&1\` =~ /3\\.8/) {
  646. print "oscheck='Coherent Technology Linux 3.8'\\n";
  647. }
  648. if (\$etc_issue =~ /coherent\\s*technology.*\\s3\\.9/i || \`cat /etc/coherent-release 2>&1\` =~ /3\\.9/) {
  649. print "oscheck='Coherent Technology Linux 3.9'\\n";
  650. }
  651. if (\$etc_issue =~ /coherent\\s*technology.*\\s4\\.0/i || \`cat /etc/coherent-release 2>&1\` =~ /4\\.0/) {
  652. print "oscheck='Coherent Technology Linux 4.0'\\n";
  653. }
  654. if (\$etc_issue =~ /coherent\\s*technology.*\\s4\\.1/i || \`cat /etc/coherent-release 2>&1\` =~ /4\\.1/) {
  655. print "oscheck='Coherent Technology Linux 4.1'\\n";
  656. }
  657. if (\$etc_issue =~ /coherent\\s*technology.*\\s4\\.2/i || \`cat /etc/coherent-release 2>&1\` =~ /4\\.2/) {
  658. print "oscheck='Coherent Technology Linux 4.2'\\n";
  659. }
  660. if (\$etc_issue =~ /coherent\\s*technology.*\\s4\\.3/i || \`cat /etc/coherent-release 2>&1\` =~ /4\\.3/) {
  661. print "oscheck='Coherent Technology Linux 4.3'\\n";
  662. }
  663. if (\$etc_issue =~ /coherent\\s*technology.*\\s4\\.4/i || \`cat /etc/coherent-release 2>&1\` =~ /4\\.4/) {
  664. print "oscheck='Coherent Technology Linux 4.4'\\n";
  665. }
  666. if (\$etc_issue =~ /coherent\\s*technology.*\\s4\\.5/i || \`cat /etc/coherent-release 2>&1\` =~ /4\\.5/) {
  667. print "oscheck='Coherent Technology Linux 4.5'\\n";
  668. }
  669. if (\$etc_issue =~ /coherent\\s*technology.*\\s4\\.6/i || \`cat /etc/coherent-release 2>&1\` =~ /4\\.6/) {
  670. print "oscheck='Coherent Technology Linux 4.6'\\n";
  671. }
  672. if (\$etc_issue =~ /coherent\\s*technology.*\\s4\\.7/i || \`cat /etc/coherent-release 2>&1\` =~ /4\\.7/) {
  673. print "oscheck='Coherent Technology Linux 4.7'\\n";
  674. }
  675. if (\$etc_issue =~ /coherent\\s*technology.*\\s4\\.8/i || \`cat /etc/coherent-release 2>&1\` =~ /4\\.8/) {
  676. print "oscheck='Coherent Technology Linux 4.8'\\n";
  677. }
  678. if (\$etc_issue =~ /coherent\\s*technology.*\\s4\\.9/i || \`cat /etc/coherent-release 2>&1\` =~ /4\\.9/) {
  679. print "oscheck='Coherent Technology Linux 4.9'\\n";
  680. }
  681. if (\$etc_issue =~ /PS2\\s+Linux\\s+release\\s+1.0/i) {
  682. print "oscheck='Playstation Linux 1.0'\\n";
  683. }
  684. if (\`cat /etc/tinysofa-release 2>/dev/null\` =~ /release\\s+2\\.0/i) {
  685. print "oscheck='TinySofa Linux 2.0'\\n";
  686. }
  687. if (\`cat /etc/startcom-release 2>/dev/null\` =~ /3\\.0/) {
  688. print "oscheck='StartCom Linux 3.0'\\n";
  689. }
  690. if (\$uname =~ /FreeBSD.*\\s2\\.1/i) {
  691. print "oscheck='FreeBSD 2.1'\\n";
  692. }
  693. if (\$uname =~ /FreeBSD.*\\s2\\.2/i) {
  694. print "oscheck='FreeBSD 2.2'\\n";
  695. }
  696. if (\$uname =~ /FreeBSD.*\\s3\\.0/i) {
  697. print "oscheck='FreeBSD 3.0'\\n";
  698. }
  699. if (\$uname =~ /FreeBSD.*\\s3\\.1/i) {
  700. print "oscheck='FreeBSD 3.1'\\n";
  701. }
  702. if (\$uname =~ /FreeBSD.*\\s3\\.2/i) {
  703. print "oscheck='FreeBSD 3.2'\\n";
  704. }
  705. if (\$uname =~ /FreeBSD.*\\s3\\.3/i) {
  706. print "oscheck='FreeBSD 3.3'\\n";
  707. }
  708. if (\$uname =~ /FreeBSD.*\\s3\\.4/i) {
  709. print "oscheck='FreeBSD 3.4'\\n";
  710. }
  711. if (\$uname =~ /FreeBSD.*\\s3\\.5/i) {
  712. print "oscheck='FreeBSD 3.5'\\n";
  713. }
  714. if (\$uname =~ /FreeBSD.*\\s4\\.0/i) {
  715. print "oscheck='FreeBSD 4.0'\\n";
  716. }
  717. if (\$uname =~ /FreeBSD.*\\s4\\.1(\\s|\\-)/i) {
  718. print "oscheck='FreeBSD 4.1'\\n";
  719. }
  720. if (\$uname =~ /FreeBSD.*\\s4\\.2/i) {
  721. print "oscheck='FreeBSD 4.2'\\n";
  722. }
  723. if (\$uname =~ /FreeBSD.*\\s4\\.3/i) {
  724. print "oscheck='FreeBSD 4.3'\\n";
  725. }
  726. if (\$uname =~ /FreeBSD.*\\s4\\.4/i) {
  727. print "oscheck='FreeBSD 4.4'\\n";
  728. }
  729. if (\$uname =~ /FreeBSD.*\\s4\\.5/i) {
  730. print "oscheck='FreeBSD 4.5'\\n";
  731. }
  732. if (\$uname =~ /FreeBSD.*\\s4\\.6/i) {
  733. print "oscheck='FreeBSD 4.6'\\n";
  734. }
  735. if (\$uname =~ /FreeBSD.*\\s4\\.7/i) {
  736. print "oscheck='FreeBSD 4.7'\\n";
  737. }
  738. if (\$uname =~ /FreeBSD.*\\s4\\.8/i) {
  739. print "oscheck='FreeBSD 4.8'\\n";
  740. }
  741. if (\$uname =~ /FreeBSD.*\\s4\\.9/i) {
  742. print "oscheck='FreeBSD 4.9'\\n";
  743. }
  744. if (\$uname =~ /FreeBSD.*\\s4\\.10(\\s|\\-)/i) {
  745. print "oscheck='FreeBSD 4.10'\\n";
  746. }
  747. if (\$uname =~ /FreeBSD.*\\s5\\.0/i) {
  748. print "oscheck='FreeBSD 5.0'\\n";
  749. }
  750. if (\$uname =~ /FreeBSD.*\\s5\\.1/i) {
  751. print "oscheck='FreeBSD 5.1'\\n";
  752. }
  753. if (\$uname =~ /FreeBSD.*\\s5\\.2/i) {
  754. print "oscheck='FreeBSD 5.2'\\n";
  755. }
  756. if (\$uname =~ /FreeBSD.*\\s5\\.2/i) {
  757. print "oscheck='FreeBSD 5.3'\\n";
  758. }
  759. if (\$uname =~ /OpenBSD.*\\s2\\.5/i) {
  760. print "oscheck='OpenBSD 2.5'\\n";
  761. }
  762. if (\$uname =~ /OpenBSD.*\\s2\\.6/i) {
  763. print "oscheck='OpenBSD 2.6'\\n";
  764. }
  765. if (\$uname =~ /OpenBSD.*\\s2\\.7/i) {
  766. print "oscheck='OpenBSD 2.7'\\n";
  767. }
  768. if (\$uname =~ /OpenBSD.*\\s2\\.8/i) {
  769. print "oscheck='OpenBSD 2.8'\\n";
  770. }
  771. if (\$uname =~ /OpenBSD.*\\s2\\.9/i) {
  772. print "oscheck='OpenBSD 2.9'\\n";
  773. }
  774. if (\$uname =~ /OpenBSD.*\\s3\\.0/i) {
  775. print "oscheck='OpenBSD 3.0'\\n";
  776. }
  777. if (\$uname =~ /OpenBSD.*\\s3\\.1/i) {
  778. print "oscheck='OpenBSD 3.1'\\n";
  779. }
  780. if (\$uname =~ /OpenBSD.*\\s3\\.2/i) {
  781. print "oscheck='OpenBSD 3.2'\\n";
  782. }
  783. if (\$uname =~ /OpenBSD.*\\s3\\.3/i) {
  784. print "oscheck='OpenBSD 3.3'\\n";
  785. }
  786. if (\$uname =~ /OpenBSD.*\\s3\\.4/i) {
  787. print "oscheck='OpenBSD 3.4'\\n";
  788. }
  789. if (\$uname =~ /OpenBSD.*\\s3\\.5/i) {
  790. print "oscheck='OpenBSD 3.5'\\n";
  791. }
  792. if (\$uname =~ /OpenBSD.*\\s3\\.6/i) {
  793. print "oscheck='OpenBSD 3.6'\\n";
  794. }
  795. if (\$uname =~ /NetBSD.*1\\.5/i) {
  796. print "oscheck='NetBSD 1.5'\\n";
  797. }
  798. if (\$uname =~ /NetBSD.*1\\.6/i) {
  799. print "oscheck='NetBSD 1.6'\\n";
  800. }
  801. if (\$uname =~ /NetBSD.*2\\.0/i) {
  802. print "oscheck='NetBSD 2.0'\\n";
  803. }
  804. if (\$uname =~ /DragonFly.*\\s1\\.0A/i) {
  805. print "oscheck='DragonFly BSD 1.0'\\n";
  806. }
  807. if (\$uname =~ /HP-UX.*10\\.01/) {
  808. print "oscheck='HP/UX 10.01'\\n";
  809. }
  810. if (\$uname =~ /HP-UX.*10\\.10/) {
  811. print "oscheck='HP/UX 10.10'\\n";
  812. }
  813. if (\$uname =~ /HP-UX.*10\\.20/) {
  814. print "oscheck='HP/UX 10.20'\\n";
  815. }
  816. if (\$uname =~ /HP-UX.*10\\.30/) {
  817. print "oscheck='HP/UX 10.30'\\n";
  818. }
  819. if (\$uname =~ /HP-UX.*11\\./) {
  820. print "oscheck='HP/UX 11'\\n";
  821. }
  822. if (\$uname =~ /IRIX.*6\\.0/i) {
  823. print "oscheck='SGI Irix 6.0'\\n";
  824. }
  825. if (\$uname =~ /IRIX.*6\\.1/i) {
  826. print "oscheck='SGI Irix 6.1'\\n";
  827. }
  828. if (\$uname =~ /IRIX.*6\\.2/i) {
  829. print "oscheck='SGI Irix 6.2'\\n";
  830. }
  831. if (\$uname =~ /IRIX.*6\\.3/i) {
  832. print "oscheck='SGI Irix 6.3'\\n";
  833. }
  834. if (\$uname =~ /IRIX.*6\\.4/i) {
  835. print "oscheck='SGI Irix 6.4'\\n";
  836. }
  837. if (\$uname =~ /IRIX.*6\\.5/i) {
  838. print "oscheck='SGI Irix 6.5'\\n";
  839. }
  840. if (\$uname =~ /OSF1.*4\\.0/) {
  841. print "oscheck='DEC/Compaq OSF/1 4.0'\\n";
  842. }
  843. if (\$uname =~ /OSF1.*V5.1/) {
  844. print "oscheck='DEC/Compaq OSF/1 5.1'\\n";
  845. }
  846. if (\$uname =~ /\\sAIX\\s+2\\s+4\\s+/i) {
  847. print "oscheck='IBM AIX 4.2'\\n";
  848. }
  849. if (\$uname =~ /\\sAIX\\s+3\\s+4\\s+/i) {
  850. print "oscheck='IBM AIX 4.3'\\n";
  851. }
  852. if (\$uname =~ /\\sAIX\\s+0\\s+5\\s+/i) {
  853. print "oscheck='IBM AIX 5.0'\\n";
  854. }
  855. if (\$uname =~ /\\sAIX\\s+1\\s+5\\s+/i) {
  856. print "oscheck='IBM AIX 5.1'\\n";
  857. }
  858. if (\$uname =~ /\\sAIX\\s+2\\s+5\\s+/i) {
  859. print "oscheck='IBM AIX 5.2'\\n";
  860. }
  861. if (\$uname =~ /SCO_SV.*\\s5\\./i) {
  862. print "oscheck='SCO OpenServer 5'\\n";
  863. }
  864. if (\`sw_vers 2>/dev/null\` =~ /ProductVersion:\\s+10\\.0/i) {
  865. print "oscheck='Mac OS X / OS X Server 10.0'\\n";
  866. }
  867. if (\`sw_vers 2>/dev/null\` =~ /ProductVersion:\\s+10\\.1/i) {
  868. print "oscheck='Mac OS X / OS X Server 10.1'\\n";
  869. }
  870. if (\`sw_vers 2>/dev/null\` =~ /ProductVersion:\\s+10\\.2/i) {
  871. print "oscheck='Mac OS X / OS X Server 10.2'\\n";
  872. }
  873. if (\`sw_vers 2>/dev/null\` =~ /ProductVersion:\\s+10\\.3/i) {
  874. print "oscheck='Mac OS X / OS X Server 10.3'\\n";
  875. }
  876. if (\$uname =~ /Darwin.*\\s1\\.0/) {
  877. print "oscheck='Darwin 1.0'\\n";
  878. }
  879. if (\$uname =~ /Darwin.*\\s1\\.2/) {
  880. print "oscheck='Darwin 1.2'\\n";
  881. }
  882. if (\$uname =~ /Darwin.*\\s1\\.3/) {
  883. print "oscheck='Darwin 1.3'\\n";
  884. }
  885. if (\$uname =~ /Darwin.*\\s1\\.4/) {
  886. print "oscheck='Darwin 1.4'\\n";
  887. }
  888. if (\$uname =~ /Darwin.*\\s5\\.1/) {
  889. print "oscheck='Darwin 5.1'\\n";
  890. }
  891. if (\$uname =~ /Darwin.*\\s5\\.2/) {
  892. print "oscheck='Darwin 5.2'\\n";
  893. }
  894. if (\$uname =~ /Darwin.*\\s5\\.3/) {
  895. print "oscheck='Darwin 5.3'\\n";
  896. }
  897. if (\$uname =~ /Darwin.*\\s5\\.4/) {
  898. print "oscheck='Darwin 5.4'\\n";
  899. }
  900. if (\$uname =~ /Darwin.*\\s5\\.5/) {
  901. print "oscheck='Darwin 5.5'\\n";
  902. }
  903. if (\$uname =~ /Darwin.*\\s6\\.0/) {
  904. print "oscheck='Darwin 6.0'\\n";
  905. }
  906. if (\$uname =~ /Darwin.*\\s6\\.1/) {
  907. print "oscheck='Darwin 6.1'\\n";
  908. }
  909. if (\$uname =~ /Darwin.*\\s6\\.2/) {
  910. print "oscheck='Darwin 6.2'\\n";
  911. }
  912. if (\$uname =~ /Darwin.*\\s6\\.3/) {
  913. print "oscheck='Darwin 6.3'\\n";
  914. }
  915. if (\$uname =~ /Darwin.*\\s6\\.4/) {
  916. print "oscheck='Darwin 6.4'\\n";
  917. }
  918. if (\$uname =~ /Darwin.*\\s6\\.5/) {
  919. print "oscheck='Darwin 6.5'\\n";
  920. }
  921. if (\$uname =~ /Darwin.*\\s6\\.6/) {
  922. print "oscheck='Darwin 6.6'\\n";
  923. }
  924. if (\$uname =~ /Darwin.*\\s6\\.7/) {
  925. print "oscheck='Darwin 6.7'\\n";
  926. }
  927. if (\$uname =~ /Darwin.*\\s6\\.8/) {
  928. print "oscheck='Darwin 6.8'\\n";
  929. }
  930. if (\$uname =~ /Darwin.*\\s7\\.0/) {
  931. print "oscheck='Darwin 7.0'\\n";
  932. }
  933. if (\$uname =~ /Darwin.*\\s7\\.1/) {
  934. print "oscheck='Darwin 7.1'\\n";
  935. }
  936. if (\$uname =~ /Darwin.*\\s7\\.2/) {
  937. print "oscheck='Darwin 7.2'\\n";
  938. }
  939. if (\$uname =~ /Darwin.*\\s7\\.3/) {
  940. print "oscheck='Darwin 7.3'\\n";
  941. }
  942. if (\$uname =~ /Darwin.*\\s7\\.4/) {
  943. print "oscheck='Darwin 7.4'\\n";
  944. }
  945. if (\$uname =~ /Darwin.*\\s7\\.5/) {
  946. print "oscheck='Darwin 7.5'\\n";
  947. }
  948. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /Java Desktop System.*\\nVERSION = 1\\.0/i) {
  949. print "oscheck='Sun Java Desktop System 1.0 (Linux)'\\n";
  950. }
  951. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /Java Desktop System.*\\nVERSION = 2\\.0/i) {
  952. print "oscheck='Sun Java Desktop System 2.0 (Linux)'\\n";
  953. }
  954. if (\`cat /etc/SuSE-release 2>/dev/null\` =~ /Java Desktop System.*\\nVERSION = 3\\.0/i) {
  955. print "oscheck='Sun Java Desktop System 3.0 (Linux)'\\n";
  956. }
  957. if (\$uname =~ /SunOS.*\\s5\\.9\\s/i && \`cat /etc/sun-release 2>/dev/null\` =~ /Sun\\s+Java\\s+Desktop/) {
  958. print "oscheck='Sun Java Desktop System 2.0 (Solaris)'\\n";
  959. }
  960. EOD
  961. . /tmp/.webmin/$$.check
  962. rm -f /tmp/.webmin/$$.check
  963. if [ ! -r /etc/webmin/config ]; then
  964. if [ "$oscheck" = "" ]; then
  965. echo Unabled to identify operating system
  966. exit 2
  967. fi
  968. echo Operating system is $oscheck
  969. if [ "$WEBMIN_PORT" != "" ]; then
  970. port=$WEBMIN_PORT
  971. else
  972. port=10000
  973. fi
  974. perl -e 'use Socket; socket(FOO, PF_INET, SOCK_STREAM, getprotobyname("tcp")); setsockopt(FOO, SOL_SOCKET, SO_REUSEADDR, pack("l", 1)); bind(FOO, pack_sockaddr_in($ARGV[0], INADDR_ANY)) || exit(1); exit(0);' $port
  975. if [ "$?" != "0" ]; then
  976. echo Port $port is already in use
  977. exit 2
  978. fi
  979. fi
  980. %post
  981. /sbin/chkconfig --add webmin
  982. if [ "$1" != 1 ]; then
  983. # Upgrading the RPM, so stop the old webmin properly
  984. /etc/init.d/webmin stop
  985. fi
  986. cd /usr/libexec/webmin
  987. config_dir=/etc/webmin
  988. var_dir=/var/webmin
  989. if [ -f $config_dir/config ]; then
  990. perl -pi -e 's/lang=ja\n/lang=ja_JP.euc\n/g' $config_dir/config
  991. fi
  992. perl=/usr/bin/perl
  993. autoos=3
  994. if [ "$WEBMIN_PORT" != "" ]; then
  995. port=$WEBMIN_PORT
  996. else
  997. port=10000
  998. fi
  999. login=root
  1000. if [ -r /etc/shadow ]; then
  1001. #crypt=`grep "^root:" /etc/shadow | cut -f 2 -d :`
  1002. crypt=x
  1003. else
  1004. crypt=`grep "^root:" /etc/passwd | cut -f 2 -d :`
  1005. fi
  1006. host=localhost
  1007. ssl=1
  1008. atboot=1
  1009. nochown=1
  1010. autothird=1
  1011. noperlpath=1
  1012. nouninstall=1
  1013. nostart=1
  1014. allow=127.0.0.1
  1015. CONF_LST_LANG=ja_JP.euc
  1016. export config_dir var_dir perl autoos port login crypt host ssl nochown autothird noperlpath nouninstall nostart allow CONF_LST_LANG
  1017. ./setup.sh >/tmp/.webmin/webmin-setup.out 2>&1
  1018. rm -f /var/lock/subsys/webmin
  1019. /etc/init.d/webmin start
  1020. cat >/etc/webmin/uninstall.sh <<EOFF
  1021. #!/bin/sh
  1022. printf "Are you sure you want to uninstall Webmin? (y/n) : "
  1023. read answer
  1024. printf "\n"
  1025. if [ "\$answer" = "y" ]; then
  1026. echo "Removing webmin RPM .."
  1027. rpm -e --nodeps webmin
  1028. echo "Done!"
  1029. fi
  1030. EOFF
  1031. chmod +x /etc/webmin/uninstall.sh
  1032. if [ -f $config_dir/miniserv.users ]; then
  1033. perl -pi -e 's/root:XXUp2ozpdysrQ:0\n/root:$ENV{'crypt'}:0\n/g' $config_dir/miniserv.users
  1034. perl -pi -e 's/root::0\n/root:$ENV{'crypt'}:0\n/g' $config_dir/miniserv.users
  1035. fi
  1036. %if %{?_dist_release}=="vl4"
  1037. if [ "$LANG" = "ja_JP.eucJP" ]; then
  1038. %else
  1039. if [ "$LANG" = "ja_JP.UTF-8" ]; then
  1040. %endif
  1041. echo "Webminがインストールされました。mozillaなどのブラウザを開き、"
  1042. echo "https://$host:10000/ にアクセスし、rootでログインしてください。"
  1043. else
  1044. echo "Webmin install complete. You can now login to https://$host:10000/"
  1045. echo "as root with your root password."
  1046. fi
  1047. %preun
  1048. if [ "$1" = 0 ]; then
  1049. grep root=/usr/libexec/webmin /etc/webmin/miniserv.conf >/dev/null 2>&1
  1050. if [ "$?" = 0 ]; then
  1051. # RPM is being removed, and no new version of webmin
  1052. # has taken it's place. Run uninstalls and stop the server
  1053. echo "Running uninstall scripts .."
  1054. (cd /usr/libexec/webmin ; WEBMIN_CONFIG=/etc/webmin WEBMIN_VAR=/var/webmin LANG= /usr/libexec/webmin/run-uninstalls.pl)
  1055. /etc/rc.d/init.d/webmin stop
  1056. /bin/true
  1057. fi
  1058. /sbin/chkconfig --del webmin
  1059. fi
  1060. %postun
  1061. if [ "$1" = 0 ]; then
  1062. grep root=/usr/libexec/webmin /etc/webmin/miniserv.conf >/dev/null 2>&1
  1063. if [ "$?" = 0 ]; then
  1064. # RPM is being removed, and no new version of webmin
  1065. # has taken it's place. Delete the config files
  1066. rm -rf /etc/webmin /var/webmin
  1067. fi
  1068. fi
  1069. %changelog
  1070. * Sat Jun 6 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.470-1
  1071. - applied new versioning policy, spec in UTF-8
  1072. - updated Patch0 and spec files for Vine Linux 5.0
  1073. - updated SOURCE11
  1074. * Thu Dec 27 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.290-0vl2
  1075. - updated Patch0 and spec files for Vine Linux 4.2
  1076. - don't redirect messages when start/stop webmin at %%post, %%preun and %%postun.
  1077. * Sat Sep 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.290-0vl1
  1078. - new upstream release
  1079. - changed Group to Applications/Administration
  1080. - updated Patch0 and spec files for Vine Linux 4.0
  1081. * Fri Jun 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.280-0vl1
  1082. - new upstream release
  1083. * Thu Sep 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.180-0vl3
  1084. - fixed Patch0 (restart section in /etc/rc.d/init.d/webmin)
  1085. * Thu Aug 25 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.180-0vl2
  1086. - updated for Vine 3.2 (Patch0, spec file)
  1087. * Wed Feb 16 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.180-0vl1
  1088. - new upstream release
  1089. - updated Patch0 for Vine3.1
  1090. - s/Copyright/License/
  1091. - changed Group:
  1092. * Tue Feb 25 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.070-0vl1
  1093. - new upstream release
  1094. - [SECURITY FIX]
  1095. * Wed Oct 30 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.000-1vl7
  1096. - change restart behavior in /etc/init.d/webmin.
  1097. * Wed Oct 30 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.000-1vl6
  1098. - fix /etc/init.d/webmin
  1099. replace webmin root password as real password,
  1100. when it is null(like root::0).
  1101. * Sun Oct 27 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.000-1vl5
  1102. - add allow=127.0.0.1 to miniserv.conf
  1103. - add some configuration check in /etc/init.d/webmin
  1104. * Sun Oct 27 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.000-1vl4
  1105. - fixed security bug.
  1106. - add adhoc script to replace null root password in miniserv.users
  1107. with real password.
  1108. * Tue Oct 08 2002 FUJIOKA Takeyuki <fuji@ftserve.net> 1.000-1vl3
  1109. - added some third party module.
  1110. (netatalk,iptables,ipchains and the patch.)
  1111. * Mon Oct 07 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.000-1vl2
  1112. - fix some patch bug.
  1113. * Mon Oct 07 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.000-1vl1
  1114. - replace lang name (ja -> ja_JP.euc) in config file at %%post script.
  1115. * Fri Oct 4 2002 FUJIOKA Takeyuki <fuji@ftserve.net> 1.00-0vl0
  1116. - updated to 1.00
  1117. - added Vine Linux patch
  1118. (limit default access policy to 'allow=localhost' and SSL.)
  1119. (Japanese login if LANG=ja_JP.eucJP)
  1120. ("os_list.txt" to add the dectection of VineLinux)
  1121. * Sun Mar 31 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.92-0vl3
  1122. - added Source12 and Patch7 (netatalk webmin module 0.9)
  1123. - modified Patch4 for Vine 2.5 and 2.5CR
  1124. * Sun Mar 03 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.92-0vl2
  1125. - stop/start webmin service only if webmin is already running in %%post section
  1126. * Wed Feb 06 2002 Toru Sagami <sagami@vinelinux.org> 0.92-0vl1
  1127. - updated to 0.92 and added iptables module
  1128. - quit replacing quota bind8 sendmail file man modules
  1129. * Thu Jan 3 2002 Tomoya TAKA <taka@vinelinux.org> 0.91-0vl1
  1130. - update to 0.91
  1131. - add some updated modules to Webmin 0.91
  1132. (cf. http://www.webmin.com/webmin/updates.html)
  1133. - update ipchains module to 0.83.1 and modify ipchains-Japanese.patch
  1134. - cleanup spec file
  1135. * Tue Nov 13 2001 Tomoya TAKA <taka@vinelinux.org> 0.88-0vl3
  1136. - remove /etc/webmin/ and /var/webmin/ from %%files
  1137. * Tue Oct 23 2001 Toru Sagami <sagami@vinelinux.org>
  1138. - 0.88-0vl3: fix for Insecure Temporary File Creation
  1139. * Sat Sep 15 2001 Toru Sagami <sagami@vinelinux.org>
  1140. - fixed Group s/Application/Applications/
  1141. * Thu Sep 13 2001 Toru Sagami <sagami@vinelinux.org>
  1142. - 0.88-0vl1: updated to 0.88
  1143. * Fri Sep 07 2001 Toru Sagami <sagami@vinelinux.org>
  1144. - 0.87-0vl3: treatment to use LPRng by default instead of lp
  1145. * Fri Jul 27 2001 <sagami@vinelinux.org>
  1146. - 0.87-0vl2: webmin starts at 99 and stops at 00 (No reason!)
  1147. - eliminate noreplace attribute from initscript
  1148. (NOTE: 'noreplace' may be marked to config file, not to initscript)
  1149. * Mon Jul 16 2001 <sagami@vinelinux.org>
  1150. - 0.87-0vl1: port to VineSeedPlus from VinePlus/2.1
  1151. - two of the patches are slightly modified for 0.87
  1152. - slightly modified initscript message
  1153. * Sat Mar 17 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [0.84-0vl2]
  1154. - correct ja message of webminlog
  1155. - security fix on postinstall.sh
  1156. * Mon Feb 26 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [0.84-0vl1]
  1157. - update to 0.84 based on the Mandrake 0.84-1mdk
  1158. - add requires Net::SSLeay
  1159. - split add-ja-info.sh from Japanese patch
  1160. * Tue Sep 19 2000 KAJIKI Yoshihiro <kajiki@ylug.org>
  1161. - update Japanese resource to match with webmin-0.81
  1162. - set several access control as default for security
  1163. * Thu Sep 14 2000 KAJIKI Yoshihiro <kajiki@ylug.org>
  1164. - change default protocol to SSL, if Net::SSLeay is found
  1165. - update to webmin-0.81
  1166. * Mon Sep 4 2000 KAJIKI Yoshihiro <kajiki@ylug.org>
  1167. - update Japanese resource (almost compleated except help)
  1168. * Thu Aug 30 2000 KAJIKI Yoshihiro <kajiki@ylug.org>
  1169. - update Japanese resource (not compleated yet)
  1170. - correct default script position of ipchains
  1171. * Mon Aug 28 2000 KAJIKI Yoshihiro <kajiki@ylug.org>
  1172. - update Japanese resource (not compleated yet)
  1173. - correct default language bug
  1174. - add ipchains module
  1175. * Thu Aug 24 2000 KAJIKI Yoshihiro <kajiki@ylug.org>
  1176. - update Japanese resource (not compleated yet)
  1177. - limit default access policy to 'allow=127.0.0.1'
  1178. * Mon Aug 21 2000 KAJIKI Yoshihiro <kajiki@ylug.org>
  1179. - add Japanese resource (not compleated)
  1180. - add a vine specific patch and remove mdk specific patches
  1181. - add an ad hoc patch against requiring /usr/local/bin/perl
  1182. - rebuild for Vine Linux
  1183. * Wed Jul 19 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.80-6mdk
  1184. - BM
  1185. * Tue Jun 20 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.80-5mdk
  1186. - now uses 0.80 final of Webmin
  1187. * Wed May 24 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.80-4mdk
  1188. - more bugfixes in postfix module, after bugreports by Charles
  1189. * Sat May 20 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.80-3mdk
  1190. - small bugfix in postfix module
  1191. * Thu May 18 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.80-2mdk
  1192. - patched "os_list.txt" to add the dectection of Linux Mandrake
  1193. Corporate Server 1.0 and Linux Mandrake 7.1
  1194. - patched the post-install script which said "Mandrake 7.0" all
  1195. the time if Webmin was installed during system install
  1196. * Fri May 5 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.80-1mdk
  1197. - upgrade to 0.80 beta with the kind help of Jamie, because of
  1198. incompatibility between 0.79 and perl 5.6
  1199. * Wed May 3 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.79-5mdk
  1200. - updated postfix-mdkmodule so that it tests if postfix is running
  1201. in a more portable way [uses kill -0 <pid>]
  1202. - updated install style so that it adds to the runlevel information
  1203. at install time; thus it's okay now to select/deselect it in DrakX
  1204. * Thu Apr 20 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.79-4mdk
  1205. - fixed the hang of post install at boot time [grr]
  1206. * Wed Apr 19 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.79-3mdk
  1207. - fixed very bad security issue concerning exec of script during
  1208. install
  1209. - added small executable to tell people that they have to connect
  1210. through their web browser
  1211. * Mon Apr 17 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.79-2mdk
  1212. - fixed missing LICENCE file
  1213. * Fri Apr 14 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.79-1mdk
  1214. - 0.79
  1215. - updated postfix-mdkmodule with bugfixes and other stuff
  1216. - mdkicons now have a copyright
  1217. * Thu Apr 6 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.78-2mdk
  1218. - Updated Mandrake Icons
  1219. - Updated `PreRequires', and fixed the problem of /etc/issue,
  1220. in order to not fail in install
  1221. * Mon Mar 27 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.78-1mdk
  1222. - Mandrake Icons
  1223. * Fri Mar 17 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.78-0.4mdk
  1224. - v0.78
  1225. - Postfix Module
  1226. - cleanup and debug of specfile with help of Chmouel :-)
  1227. * Thu Feb 10 2000 Lenny Cartier <lenny@mandrakesoft.com>
  1228. - v0.77
  1229. - used srpm provided by Vincent Danen <vdanen@linux-mandrake.com>
  1230. * Tue Feb 8 2000 Vincent Danen <vdanen@linux-mandrake.com>
  1231. - 0.77
  1232. - updated specfile based on the webmin source RPM (newly released, nice
  1233. changes!)
  1234. - included the 0.73 ocstheme again (does anyone know of an update to this?)
  1235. * Thu Jan 13 2000 Vincent Danen <vdanen@linux-mandrake.com>
  1236. - 0.76
  1237. * Wed Dec 08 1999 Lenny Cartier <lenny@mandrakesoft.com>
  1238. - new in contribs
  1239. - used srpm provided by Vincent Danen <vdanen@linux-mandrake.com>
  1240. * Sun Dec 5 1999 Vincent Danen <vdanen@linux-mandrake.com>
  1241. - built specfile for Mandrake contribs
  1242. - based loosely on Leon Breedt's <leon@obsidian.co.za> SRPM for 0.73
  1243. - webmin-install.sh is now a source package, not built from patch
  1244. - bzip sources