wok rev 2835

netsurf: Add custom home page
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 30 20:06:35 2009 +0200 (2009-04-30)
parents e91f31998fda
children 23c5897a0eb4
files netsurf/receipt netsurf/stuff/Makefile.defaults netsurf/stuff/netsurf.desktop netsurf/stuff/webhome/netsurf.css netsurf/stuff/webhome/netsurf.html
line diff
     1.1 --- a/netsurf/receipt	Thu Apr 30 20:05:47 2009 +0200
     1.2 +++ b/netsurf/receipt	Thu Apr 30 20:06:35 2009 +0200
     1.3 @@ -35,4 +35,7 @@
     1.4  	rm -rf $fs/usr/share/netsurf/docs
     1.5  	rm -rf $fs/usr/share/netsurf/*.xpm
     1.6  	rm -rf $fs/usr/share/netsurf/license
     1.7 +	# Webhome
     1.8 +	cp -a stuff/webhome $fs/usr/share
     1.9 +	chown -R root.root $fs
    1.10  }
     2.1 --- a/netsurf/stuff/Makefile.defaults	Thu Apr 30 20:05:47 2009 +0200
     2.2 +++ b/netsurf/stuff/Makefile.defaults	Thu Apr 30 20:06:35 2009 +0200
     2.3 @@ -58,13 +58,13 @@
     2.4  # Template used for constructing the User Agent: string.  The first two
     2.5  # replacements are major/minor version, second two are OS and architecture.
     2.6  # Please don't be tempted to mention Mozilla here!  Let's let that lie die.
     2.7 -NETSURF_UA_FORMAT_STRING := "NetSurf/%d.%d (%s; %s)"
     2.8 +NETSURF_UA_FORMAT_STRING := "NetSurf/%d.%d (%s; %s) SliTaz"
     2.9  
    2.10  # Default home page, if one is not defined by the user.  Note that this
    2.11  # option does not apply to the RISC OS version, as it has its own local
    2.12  # home page, and it can be changed by editing the end of gui_init2() in
    2.13  # riscos/gui.c
    2.14 -NETSURF_HOMEPAGE := "file:///usr/share/webhome/index.html"
    2.15 +NETSURF_HOMEPAGE := "file:///usr/share/webhome/netsurf.html"
    2.16  
    2.17  # Force using glibc internal iconv implementation instead of external libiconv
    2.18  # Valid options: YES, NO
     3.1 --- a/netsurf/stuff/netsurf.desktop	Thu Apr 30 20:05:47 2009 +0200
     3.2 +++ b/netsurf/stuff/netsurf.desktop	Thu Apr 30 20:06:35 2009 +0200
     3.3 @@ -1,8 +1,8 @@
     3.4  [Desktop Entry]
     3.5 -Name=Netsurf Web Browser
     3.6 -Name[de]=Netznavigator Netsurf
     3.7 -Name[fr]=Navigateur Web Netsurf
     3.8 -Name[pt_PT]=Navegador Web Netsurf
     3.9 +Name=NetSurf Web Browser
    3.10 +Name[de]=Netznavigator NetSurf
    3.11 +Name[fr]=Navigateur Web NetSurf
    3.12 +Name[pt_PT]=Navegador Web NetSurf
    3.13  Type=Application
    3.14  Categories=Network;
    3.15  MimeType=text/html;application/xhtml+xml;
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/netsurf/stuff/webhome/netsurf.css	Thu Apr 30 20:06:35 2009 +0200
     4.3 @@ -0,0 +1,108 @@
     4.4 +/*
     4.5 +	CSS style for SliTaz GNU/Linux local home page
     4.6 +	www.slitaz.org - (c) 2008 SliTaz Community
     4.7 +*/
     4.8 +
     4.9 +body {
    4.10 +	background: #ffffff;
    4.11 +	color: black;
    4.12 +	font: 13px sans-serif, vernada, arial;
    4.13 +	margin: 0 0 0 0;
    4.14 +	padding-bottom: 100%;
    4.15 +}
    4.16 +
    4.17 +#header {
    4.18 +	background: #f0ba08 url(pics/header.png) repeat-x top;
    4.19 +	color: black;
    4.20 +	width: 100%;
    4.21 +	height: 50px ;
    4.22 +	border-top: 1px solid black;
    4.23 +	border-bottom: 1px solid black;
    4.24 +	/* margin-bottom: 30px; */
    4.25 +}
    4.26 +
    4.27 +/* Page content */
    4.28 +
    4.29 +#content {
    4.30 +	background: white;
    4.31 +	color: black;
    4.32 +	text-align: justify;
    4.33 +}
    4.34 +
    4.35 +#content li {
    4.36 +	line-height: 1.5em;
    4.37 +	text-align: left;
    4.38 +}
    4.39 +
    4.40 +/* Footer */
    4.41 +
    4.42 +#bottom {
    4.43 +	float: none;
    4.44 +	background: inherit;
    4.45 +	color: black;
    4.46 +	width: auto;
    4.47 +	clear: both;
    4.48 +	padding: 0;
    4.49 +	margin: 0;
    4.50 +	text-align: center;
    4.51 +	vertical-align: middle;
    4.52 +}
    4.53 +
    4.54 +/* HTML styles */
    4.55 +
    4.56 +h1 {
    4.57 +	color: #222222;
    4.58 +	background: inherit;
    4.59 +	text-align: center;
    4.60 +	margin: 0px 0px 20px 0px;
    4.61 +	padding: 10px 0px 10px 0px;
    4.62 +}
    4.63 +
    4.64 +h2 {
    4.65 +    color: #DF8F06;
    4.66 +    border-left: 10px solid #F3F3F3;
    4.67 +    padding: 4px 0px 4px 4px;
    4.68 +    margin: 0;
    4.69 +}
    4.70 +
    4.71 +h3 {
    4.72 +	font-weight: bold;
    4.73 +	color: #6c0023;
    4.74 +	background: inherit;
    4.75 +}
    4.76 +
    4.77 +a {
    4.78 +	text-decoration: underline;
    4.79 +	color: #0F314E;
    4.80 +	background: inherit;
    4.81 +}
    4.82 +
    4.83 +a:hover {
    4.84 +	text-decoration: none;
    4.85 +	color: blue;
    4.86 +	background: inherit;
    4.87 +}
    4.88 +
    4.89 +img {
    4.90 +	border: 0pt none;
    4.91 +}
    4.92 +
    4.93 +/* Table */
    4.94 +
    4.95 +table {
    4.96 +	width: variable;
    4.97 +	margin-left: auto;
    4.98 +	margin-right: auto;
    4.99 +}
   4.100 +
   4.101 +td {
   4.102 +	width: variable;
   4.103 +	padding: 6px;
   4.104 +}
   4.105 +
   4.106 +th {
   4.107 +	width: variable;
   4.108 +
   4.109 +
   4.110 +	text-align: right;
   4.111 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/netsurf/stuff/webhome/netsurf.html	Thu Apr 30 20:06:35 2009 +0200
     5.3 @@ -0,0 +1,66 @@
     5.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     5.5 +    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     5.6 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     5.7 +<head>
     5.8 +    <title>SliTaz - Web Homepage</title>
     5.9 +    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
    5.10 +    <meta name="author" content="Christophe Lincoln"/>
    5.11 +    <link rel="shortcut icon" href="favicon.ico" />
    5.12 +    <link rel="stylesheet" type="text/css" href="netsurf.css" />
    5.13 +</head>
    5.14 +<body>
    5.15 +
    5.16 +<!-- Header -->
    5.17 +<div id="header">
    5.18 +<h1>Browse the Web</h1>
    5.19 +</div>
    5.20 +
    5.21 +<!-- Content -->
    5.22 +<div id="content">
    5.23 +
    5.24 +<div style="text-align: center; margin: 10px;">
    5.25 +<table>
    5.26 +	<!-- Search Wikipedia -->
    5.27 +	<tr>
    5.28 +		<th><strong>[ Wikipedia ]</strong></th>
    5.29 +		<td>
    5.30 +			<form action="http://www.wikipedia.org/search-redirect.php" method="get">
    5.31 +				<input type="hidden" name="language" value="en" />
    5.32 +				<input type="text" name="search" size="30" />
    5.33 +				<input type="submit" name="go" value="Search" />
    5.34 +			</form>
    5.35 +		</td>
    5.36 +	</tr>
    5.37 +	<!-- Search Google -->
    5.38 +	<tr>
    5.39 +		<th><strong>[ Google ]</strong></th>
    5.40 +		<td>
    5.41 +			<form method="get" action="http://www.google.com/search">
    5.42 +				<input type="text" name="q" size="30" maxlength="255" value="" />
    5.43 +				<input type="submit" value="Search" />
    5.44 +			</form>
    5.45 +		</td>
    5.46 +	</tr>
    5.47 +</table>
    5.48 +</div>
    5.49 +
    5.50 +<!-- Shortcuts -->
    5.51 +<div style="text-align: center; margin: 10px;">
    5.52 +	SliTaz :
    5.53 +	<a href="http://www.slitaz.org/">Website</a> |
    5.54 +	<a href="http://forum.slitaz.org/">Forum</a> |
    5.55 +	<a href="http://wiki.slitaz.org/">Wiki</a> |
    5.56 +	<a href="http://labs.slitaz.org/">Labs</a> |
    5.57 +	<a href="http://pkgs.slitaz.org/">Packages</a>
    5.58 +</div>
    5.59 +<div style="text-align: center; margin: 10px;">
    5.60 +	NetSurf :
    5.61 +	<a href="http://www.netsurf-browser.org/">Website</a> |
    5.62 +	<a href="http://www.netsurf-browser.org/documentation/">Documentation</a>
    5.63 +</div>
    5.64 +
    5.65 +<!-- End of content with round corner -->
    5.66 +</div>
    5.67 +
    5.68 +</body>
    5.69 +</html>