webmin-vl.spec 46 KB

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