LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 920|回复: 3

[求助]麻烦高手帮看两个patch

[复制链接]
发表于 2007-6-8 06:06:33 | 显示全部楼层 |阅读模式
自己PKGBUILD   gnome-system-tools,但是装完后不能正常工作

  1. Liboobs-WARNING **: There was an unknown error communicating with the backends: The name org.freedesktop.SystemToolsBackends was not provided by any .service files
复制代码

后来到/var/abs/untable/gnome/gnomes-system-tools和system-tools-backends里面一看,原来有2个patch文件,于是又按照它原来的pkgbuild把patch加到pkgbuild里面,但是这两个patch都是很老了,在makepkg的时候提示找不到路径,不知道要怎么改。因为untable里面的gnome-system-tools版本太老了是2.14版的,所以想自己pkgbuild

1./var/abs/untable/gnome/gnome-system-tools/gst-arch.patch

  1. diff -ru doc.old/network/C/network-admin.xml doc/network/C/network-admin.xml
  2. --- doc.old/network/C/network-admin.xml 2006-03-13 16:05:19.000000000 +0000
  3. +++ doc/network/C/network-admin.xml     2007-05-30 21:13:38.000000000 +0000
  4. @@ -32,7 +32,7 @@
  5.    </copyright>
  6.     -->

  7. -    <publisher>
  8. +    <publisher role="maintainer">
  9.          <publishername>Carlos Garnacho Parro</publishername>
  10.      </publisher>

  11. diff -ru doc.old/services/C/services-admin.xml doc/services/C/services-admin.xml
  12. --- doc.old/services/C/services-admin.xml       2006-03-13 16:05:20.000000000 +0000
  13. +++ doc/services/C/services-admin.xml   2007-05-30 21:14:02.000000000 +0000
  14. @@ -32,7 +32,7 @@
  15.    </copyright>
  16.     -->

  17. -    <publisher>
  18. +    <publisher role="maintainer">
  19.          <publishername>Carlos Garnacho Parro</publishername>
  20.      </publisher>

  21. diff -ru doc.old/time/C/time-admin.xml doc/time/C/time-admin.xml
  22. --- doc.old/time/C/time-admin.xml       2006-03-13 16:05:21.000000000 +0000
  23. +++ doc/time/C/time-admin.xml   2007-05-30 21:14:33.000000000 +0000
  24. @@ -32,7 +32,7 @@
  25.    </copyright>
  26.     -->

  27. -    <publisher>
  28. +    <publisher role="maintainer">
  29.          <publishername>Carlos Garnacho Parro</publishername>
  30.      </publisher>

  31. diff -ru doc.old/users/C/users-admin.xml doc/users/C/users-admin.xml
  32. --- doc.old/users/C/users-admin.xml     2006-03-13 16:05:22.000000000 +0000
  33. +++ doc/users/C/users-admin.xml 2007-05-30 21:14:48.000000000 +0000
  34. @@ -32,7 +32,7 @@
  35.    </copyright>
  36.     -->

  37. -    <publisher>
  38. +    <publisher role="maintainer">
  39.          <publishername>Carlos Garnacho Parro</publishername>
  40.      </publisher>

  41. diff -ur doc.old/boot/C/boot-admin.xml doc/boot/C/boot-admin.xml
  42. --- doc.old/boot/C/boot-admin.xml       2006-03-13 16:05:17.000000000 +0000
  43. +++ doc/boot/C/boot-admin.xml   2007-05-30 21:16:12.000000000 +0000
  44. @@ -32,7 +32,7 @@
  45.    </copyright>
  46.     -->

  47. -    <publisher>
  48. +    <publisher role="maintainer">
  49.          <publishername>Carlos Garnacho Parro</publishername>
  50.      </publisher>
复制代码


2./var/abs/unstable/gnome/system-tools-backends/gst-arch.patch

  1. diff -Naur system-tools-backends-1.4.2/network-conf.in system-tools-backends-1.4.2-new/network-conf.in
  2. --- system-tools-backends-1.4.2/network-conf.in        2006-01-02 16:32:33.000000000 +0100
  3. +++ system-tools-backends-1.4.2-new/network-conf.in        2006-04-14 13:05:21.000000000 +0200
  4. @@ -75,9 +75,9 @@
  5.                "pld-1.0", "pld-1.1", "pld-1.99",
  6.                "conectiva-9", "conectiva-10",
  7.                "vine-3.0", "vine-3.1",
  8. -              "ark",
  9. +              "ark",
  10.                "slackware-9.1.0", "slackware-10.0.0", "slackware-10.1.0", "slackware-10.2.0",
  11. -              "gentoo", "vlos-1.2", "freebsd-5", "freebsd-6");
  12. +              "gentoo", "vlos-1.2", "freebsd-5", "freebsd-6", "archlinux");

  13. $description =<<"end_of_description;";
  14.         Configures all network parameters and interfaces.
  15. --- system-tools-backends-1.4.2/network.pl.in        2006-01-02 16:50:54.000000000 +0100
  16. +++ system-tools-backends-1.4.2-new/network.pl.in        2006-04-14 15:32:31.000000000 +0200
  17. @@ -535,6 +535,7 @@
  18.         "vlos-1.2"     => "debian-2.2",
  19.         "freebsd-5"    => "debian-2.2",
  20.         "freebsd-6"    => "debian-2.2",
  21. +       "archlinux"    => "redhat-6.2",
  22.         );

  23.    return $cmd_map{$dist_map{$gst_dist}};
  24. @@ -1838,6 +1856,7 @@

  25.            "gentoo"       => \&gst_network_deb22_get_file,
  26.            "freebsd-5"    => \&gst_network_deb22_get_file,
  27.            "freebsd-6"    => \&gst_network_deb22_get_file,
  28. +          "archlinux"    => \&gst_network_deb22_get_file,
  29.          );

  30. @@ -3959,6 +3978,7 @@
  31.            "vlos-1.2"     => "",
  32.            "freebsd-5"    => "",
  33.            "freebsd-6"    => "",
  34. +          "archlinux"    => "",
  35.           );

  36.    $dev = $dist_map {$gst_dist};
  37. @@ -4124,6 +4144,7 @@
  38.            "vlos-1.2"     => "gentoo",
  39.            "freebsd-5"    => "freebsd-5",
  40.            "freebsd-6"    => "freebsd-5",
  41. +          "archlinux"          => "archlinux",
  42.           );

  43.    my %dist_tables =
  44. @@ -4479,8 +4500,37 @@
  45.         [ "gatewaydev",    \&gst_network_get_gateway_dev_from_address, "%interface%", "%gateway%" ],
  46.         ]
  47.       },
  48. +
  49. +   "archlinux" =>
  50. +    {
  51. +      fn =>
  52. +      {
  53. +        RC_CONF     => "/etc/rc.conf",
  54. +        RESOLV_CONF => "/etc/resolv.conf",
  55. +        HOSTS       => "/etc/hosts",
  56. +        SMB_CONF    => "/etc/samba/smb.conf"
  57. +      },
  58. +      table =>
  59. +      [
  60. +       [ "hostname",      \&gst_parse_sh_re,                          RC_CONF, HOSTNAME, "^([^\.]*)\." ],
  61. +       [ "domain",        \&gst_parse_split_first_str,                RESOLV_CONF, "domain", "[ \t]+" ],
  62. +       [ "nameserver",    \&gst_parse_split_all_unique_hash_comment,  RESOLV_CONF,  "nameserver", "[ \t]+" ],
  63. +       [ "searchdomain",  \&gst_parse_split_first_array_unique,       RESOLV_CONF,  "search", "[ \t]+", "[ \t]+" ],
  64. +       [ "statichost",    \&gst_parse_split_hash,                     HOSTS,        "[ \t]+", "[ \t]+" ],
  65. +       [ "workgroup",     \&gst_parse_ini,                            SMB_CONF,     "global", "workgroup" ],
  66. +       [ "smbdesc",       \&gst_network_rh_get_smb_desc,              SMB_CONF,     "global", "server string", "%hostname%" ],
  67. +       [ "winsserver",    \&gst_parse_ini,                            SMB_CONF,     "global", "wins server" ],
  68. +       [ "winsuse",       \&gst_parse_ini_bool,                       SMB_CONF,     "global", "wins support" ],
  69. +       [ "dialinstalled", \&gst_parse_trivial, 1 ],
  70. +       [ "smbinstalled",  \&gst_service_rcng_installed,                    "samba" ],
  71. +       [ "smbuse",        \&gst_service_archlinux_get_status,              "samba" ],
  72. +       [ "interface",     \&gst_network_interfaces_get ],
  73. +       [ "gateway",       \&gst_parse_sh,                             RC_CONF, gateway ],
  74. +       [ "gatewaydev",    \&gst_network_get_gateway_dev_from_address, "%interface%", "%gateway%" ],
  75. +       ]
  76. +     },
  77.     );
  78. -  
  79. +
  80.    my $dist = $dist_map{$gst_dist};
  81.    return %{$dist_tables{$dist}} if $dist;

  82. @@ -4545,8 +4595,9 @@
  83.            "vlos-1.2"     => "gentoo",
  84.            "freebsd-5"    => "freebsd-5",
  85.            "freebsd-6"    => "freebsd-5",
  86. +          "archlinux"    => "archlinux",
  87.           );
  88. -  
  89. +
  90.    my %dist_tables =
  91.          (
  92.           "redhat-6.2" =>
  93. @@ -5318,8 +5369,59 @@
  94.         [ "persist",            \&gst_network_get_freebsd5_ppp_persist, [ STARTIF, IFACE ]],
  95.        ]
  96.      },
  97. +
  98. +    "archlinux" =>
  99. +    {
  100. +      ifaces_get => \&gst_network_archlinux_ifaces_get_existing,
  101. +      fn =>
  102. +      {
  103. +        RC_INET_CONF => "/etc/rc.d/rc.inet1.conf",
  104. +        RC_INET      => "/etc/rc.d/rc.inet1",
  105. +        RC_LOCAL     => "/etc/rc.d/rc.local",
  106. +        IFACE        => "#iface#",
  107. +        WIRELESS     => "/etc/pcmcia/wireless.opts",
  108. +        PPP_OPTIONS  => "/etc/ppp/options",
  109. +        PAP          => "/etc/ppp/pap-secrets",
  110. +        CHAP         => "/etc/ppp/chap-secrets",
  111. +        CHAT         => "/etc/ppp/pppscript",
  112. +      },
  113. +      table =>
  114. +      [
  115. +       [ "user",               \&gst_parse_trivial,                  0 ], # not supported.
  116. +       [ "dev",                \&gst_parse_trivial,                  IFACE ],
  117. +       [ "address",            \&gst_parse_rcinet1conf,              [RC_INET_CONF, IFACE], IPADDR ],
  118. +       [ "netmask",            \&gst_parse_rcinet1conf,              [RC_INET_CONF, IFACE], NETMASK ],
  119. +       [ "gateway",            \&gst_network_get_gateway,            RC_INET_CONF, GATEWAY, "%address%", "%netmask%" ],
  120. +       [ "auto",               \&gst_network_slackware91_get_auto,   [RC_INET, RC_LOCAL, IFACE]],
  121. +       [ "bootproto",          \&gst_network_slackware91_parse_bootproto, [RC_INET_CONF, IFACE]],
  122. +       [ "essid",              \&gst_parse_wireless_opts,            [ WIRELESS, IFACE ], \&gst_network_get_wireless_ifaces, ESSID ],
  123. +       [ "key_type",           \&gst_network_get_wep_key_type,      [ \&gst_parse_wireless_opts, WIRELESS, IFACE, \&gst_network_get_wireless_ifaces, KEY ]],
  124. +       [ "key",                \&gst_network_get_wep_key,           [ \&gst_parse_wireless_opts, WIRELESS, IFACE, \&gst_network_get_wireless_ifaces, KEY ]],
  125. +       [ "enabled",            \&gst_network_interface_active,       IFACE, \&gst_network_active_interfaces_get ],
  126. +       # Modem stuff
  127. +       [ "update_dns",         \&gst_network_check_type,            [IFACE, "modem", \&gst_parse_kw, PPP_OPTIONS, "usepeerdns" ]],
  128. +       [ "noauth",             \&gst_network_check_type,            [IFACE, "modem", \&gst_parse_kw, PPP_OPTIONS, "noauth" ]],
  129. +       [ "mtu",                \&gst_network_check_type,            [IFACE, "modem", \&gst_parse_split_first_str, PPP_OPTIONS, "mtu", "[ \t]+" ]],
  130. +       [ "mru",                \&gst_network_check_type,            [IFACE, "modem", \&gst_parse_split_first_str, PPP_OPTIONS, "mru", "[ \t]+" ]],
  131. +       [ "serial_port",        \&gst_network_check_type,            [IFACE, "modem", \&gst_network_get_ppp_options_re, PPP_OPTIONS, "^(/dev/[^ \t]+)" ]],
  132. +       [ "serial_speed",       \&gst_network_check_type,            [IFACE, "modem", \&gst_network_get_ppp_options_re, PPP_OPTIONS, "^([0-9]+)" ]],
  133. +       [ "login",              \&gst_network_check_type,            [IFACE, "modem", \&gst_network_get_ppp_options_re, PPP_OPTIONS, "^name "?([^"]*)"?" ]],
  134. +       [ "password",           \&gst_network_check_type,            [IFACE, "modem", \&gst_network_get_pap_passwd, PAP, "%login%" ]],
  135. +       [ "password",           \&gst_network_check_type,            [IFACE, "modem", \&gst_network_get_pap_passwd, CHAP, "%login%" ]],
  136. +       [ "ppp_options",        \&gst_network_check_type,            [IFACE, "modem", \&gst_network_get_ppp_options_unsup, PPP_OPTIONS ]],
  137. +       [ "set_default_gw",     \&gst_network_check_type,            [IFACE, "modem", \&gst_parse_kw, PPP_OPTIONS, "defaultroute" ]],
  138. +       [ "debug",              \&gst_network_check_type,            [IFACE, "modem", \&gst_parse_kw, PPP_OPTIONS, "debug" ]],
  139. +       [ "persist",            \&gst_network_check_type,            [IFACE, "modem", \&gst_parse_kw, PPP_OPTIONS, "persist" ]],
  140. +       [ "serial_escapechars", \&gst_network_check_type,            [IFACE, "modem", \&gst_parse_split_first_str, PPP_OPTIONS, "escape", "[ \t]+" ]],
  141. +       [ "serial_hwctl",       \&gst_network_check_type,            [IFACE, "modem", \&gst_parse_kw, PPP_OPTIONS, "crtscts" ]],
  142. +       [ "external_line",      \&gst_network_check_type,            [IFACE, "modem", \&gst_parse_chat, CHAT, "atd[^0-9]*([0-9*#]*)[wW]" ]],
  143. +       [ "phone_number",       \&gst_network_check_type,            [IFACE, "modem", \&gst_parse_chat, CHAT, "atd.*[ptw]([0-9, -]+)" ]],
  144. +       [ "dial_command",       \&gst_network_check_type,            [IFACE, "modem", \&gst_parse_chat, CHAT, "(atd[tp])[0-9, -w]+" ]],
  145. +       [ "volume",             \&gst_network_check_type,            [IFACE, "modem", \&gst_network_get_modem_volume, CHAT ]],
  146. +       ]
  147. +      },
  148.           );
  149. -  
  150. +
  151.    my $dist = $dist_map{$gst_dist};
  152.    return %{$dist_tables{$dist}} if $dist;

  153. @@ -5383,6 +5485,7 @@
  154.            "vlos-1.2"     => "gentoo",
  155.            "freebsd-5"    => "freebsd-5",
  156.            "freebsd-6"    => "freebsd-5",
  157. +          "archlinux"    => "archlinux",
  158.           );

  159.    my %dist_tables =
  160. @@ -5723,9 +5826,36 @@
  161.         [ "gateway",       \&gst_replace_sh,               RC_CONF, "defaultrouter" ],
  162.         [ "interface",     \&gst_network_interfaces_set,   OLD_HASH ]
  163.         ]
  164. +    },
  165. +
  166. +    "archlinux" =>
  167. +    {
  168. +      fn =>
  169. +      {
  170. +        RC_CONF     => "/etc/rc.conf",
  171. +        RESOLV_CONF => "/etc/resolv.conf",
  172. +        HOSTS       => "/etc/hosts",
  173. +        SMB_CONF    => "/etc/samba/smb.conf"
  174. +      },
  175. +      table =>
  176. +      [
  177. +       [ "hostname",      \&gst_replace_sh,               RC_CONF, "hostname", "%hostname%.%domain%" ],
  178. +       [ "hostname",      \&gst_network_run_hostname,     "%hostname%.%domain%" ],
  179. +       [ "domain",        \&gst_replace_join_first_str,   RESOLV_CONF, "domain",     "[ \t]+" ],
  180. +       [ "nameserver",    \&gst_replace_join_all,         RESOLV_CONF, "nameserver", "[ \t]+" ],
  181. +       [ "searchdomain",  \&gst_replace_join_first_array, RESOLV_CONF, "search",     "[ \t]+", "[ \t]+" ],
  182. +       [ "statichost",    \&gst_replace_join_hash,        HOSTS, "[ \t]+", "[ \t]+" ],
  183. +       [ "workgroup",     \&gst_replace_ini,              SMB_CONF,     "global", "workgroup" ],
  184. +       [ "smbdesc",       \&gst_replace_ini,              SMB_CONF,     "global", "server string", "%hostname%" ],
  185. +       [ "winsserver",    \&gst_replace_ini,              SMB_CONF,     "global", "wins server" ],
  186. +       [ "winsuse",       \&gst_replace_ini_bool,         SMB_CONF,     "global", "wins support" ],
  187. +       [ "smbuse",        \&gst_service_archlinux_set_status,  "samba" ],
  188. +       [ "gateway",       \&gst_replace_sh,               RC_CONF, "defaultrouter" ],
  189. +       [ "interface",     \&gst_network_interfaces_set,   OLD_HASH ]
  190. +       ]
  191.      }
  192.           );
  193. -  
  194. +
  195.    my $dist = $dist_map{$gst_dist};
  196.    return %{$dist_tables{$dist}} if $dist;

  197. @@ -5789,6 +5919,7 @@
  198.            "vlos-1.2"     => "gentoo",
  199.            "freebsd-5"    => "freebsd-5",
  200.            "freebsd-6"    => "freebsd-5",
  201. +          "archlinux"    => "archlinux",
  202.           );

  203.    my %dist_tables =
  204. @@ -6522,9 +6653,57 @@
  205.         [ "dial_command",   \&gst_network_replace_pppconf_dial_command, [ PPPCONF, STARTIF, IFACE ]],
  206.         [ "volume",         \&gst_network_replace_pppconf_volume,       [ PPPCONF, STARTIF, IFACE ]],
  207.        ]
  208. +    },
  209. +
  210. +    "archlinux" =>
  211. +    {
  212. +      iface_set    => \&gst_network_freebsd_interface_activate,
  213. +      iface_delete => \&gst_network_freebsd_interface_delete,
  214. +      ifaces_get   => \&gst_network_archlinux_ifaces_get_existing,
  215. +      fn =>
  216. +      {
  217. +        RC_CONF         => "/etc/rc.conf",
  218. +        STARTIF         => "/etc/ifup #iface#",
  219. +        PPP_OPTIONS     => "/etc/ppp/options",
  220. +        PAP             => "/etc/ppp/pap-secrets",
  221. +        CHAP            => "/etc/ppp/chap-secrets",
  222. +        CHAT            => "/etc/ppp/pppscript",
  223. +        IFACE           => "#iface#",
  224. +      },
  225. +      table =>
  226. +      [
  227. +       [ "auto",           \&gst_network_freebsd5_set_auto,          [ RC_CONF, IFACE ]],
  228. +       [ "bootproto",      \&gst_network_freebsd5_replace_bootproto, [ RC_CONF, IFACE ]],
  229. +       [ "address",        \&gst_replace_sh_re,    RC_CONF, "ifconfig_%dev%", "inet[ \t]+([0-9\.]+)", "inet %address%" ],
  230. +       [ "netmask",        \&gst_replace_sh_re,    RC_CONF, "ifconfig_%dev%", "netmask[ \t]+([0-9\.]+)", " netmask %netmask%" ],
  231. +       [ "remote_address", \&gst_replace_sh_re,    RC_CONF, "ifconfig_%dev%", "dest_address[ \t]+([0-9\.]+)", " dest_address %remote_address%" ],
  232. +       [ "essid",          \&gst_network_freebsd5_replace_essid,     [ RC_CONF, STARTIF, IFACE ]],
  233. +       # Modem stuff
  234. +       [ "phone_number",       \&gst_network_check_type,                   [IFACE, "modem", \&gst_network_create_pppscript, CHAT ]],
  235. +      [ "phone_number",       \&gst_network_check_type,                   [IFACE, "modem", \&gst_network_slackware91_create_pppgo ]],
  236. +      [ "update_dns",         \&gst_network_check_type,                   [IFACE, "modem", \&gst_replace_kw, PPP_OPTIONS, "usepeerdns" ]],
  237. +      [ "noauth",             \&gst_network_check_type,                   [IFACE, "modem", \&gst_replace_kw, PPP_OPTIONS, "noauth" ]],
  238. +      [ "set_default_gw",     \&gst_network_check_type,                   [IFACE, "modem", \&gst_replace_kw, PPP_OPTIONS, "defaultroute" ]],
  239. +      [ "debug",              \&gst_network_check_type,                   [IFACE, "modem", \&gst_replace_kw, PPP_OPTIONS, "debug" ]],
  240. +      [ "persist",            \&gst_network_check_type,                   [IFACE, "modem", \&gst_replace_kw, PPP_OPTIONS, "persist" ]],
  241. +      [ "serial_hwctl",       \&gst_network_check_type,                   [IFACE, "modem", \&gst_replace_kw, PPP_OPTIONS, "crtscts" ]],
  242. +      [ "mtu",                \&gst_network_check_type,                   [IFACE, "modem", \&gst_replace_join_first_str, PPP_OPTIONS, "mtu", "[ \t]+" ]],
  243. +      [ "mru",                \&gst_network_check_type,                   [IFACE, "modem", \&gst_replace_join_first_str, PPP_OPTIONS, "mru", "[ \t]+" ]],
  244. +      [ "serial_port",        \&gst_network_check_type,                   [IFACE, "modem", \&gst_network_set_ppp_options_re, PPP_OPTIONS, "^(/dev/[^ \t]+)" ]],
  245. +      [ "serial_speed",       \&gst_network_check_type,                   [IFACE, "modem", \&gst_network_set_ppp_options_re, PPP_OPTIONS, "^([0-9]+)" ]],
  246. +      [ "login",              \&gst_network_check_type,                   [IFACE, "modem", \&gst_network_set_ppp_options_re, PPP_OPTIONS, "^name "(.*)"", "name "%login%"" ]],
  247. +      [ "ppp_options",        \&gst_network_check_type,                   [IFACE, "modem", \&gst_network_set_ppp_options_unsup, PPP_OPTIONS ]],
  248. +      [ "serial_escapechars", \&gst_network_check_type,                   [IFACE, "modem", \&gst_replace_join_first_str, PPP_OPTIONS, "escape", "[ \t]+" ]],
  249. +      [ "password",           \&gst_network_check_type,                   [IFACE, "modem", \&gst_network_set_pap_passwd, PAP, "%login%" ]],
  250. +      [ "password",           \&gst_network_check_type,                   [IFACE, "modem", \&gst_network_set_pap_passwd, CHAP, "%login%" ]],
  251. +      [ "dial_command",       \&gst_network_check_type,                   [IFACE, "modem", \&gst_replace_chat, CHAT, "(atd[tp])[0-9w, -]+" ]],
  252. +      [ "phone_number",       \&gst_network_check_type,                   [IFACE, "modem", \&gst_replace_chat, CHAT, "atd[tp]([0-9w]+)" ]],
  253. +      [ "external_line",      \&gst_network_check_type,                   [IFACE, "modem", \&gst_replace_chat, CHAT, "atd[tp]([0-9w, -]+)", "%external_line%W%phone_number%" ]],
  254. +      [ "volume",             \&gst_network_check_type,                   [IFACE, "modem", \&gst_network_set_modem_volume, CHAT ]],
  255. +     ]
  256.      }
  257.    );
  258. -  
  259. +
  260.    my $dist = $dist_map{$gst_dist};
  261.    return %{$dist_tables{$dist}} if $dist;

  262. diff -Naur system-tools-backends-1.4.2/service-list.pl.in system-tools-backends-1.4.2-new/service-list.pl.in
  263. --- system-tools-backends-1.4.2/service-list.pl.in        2006-01-02 16:39:39.000000000 +0100
  264. +++ system-tools-backends-1.4.2-new/service-list.pl.in        2006-04-14 11:40:50.000000000 +0200
  265. @@ -189,6 +189,7 @@

  266.    my %service_roles = (
  267.      "acpid" => "SYSTEM",
  268. +    "adsl"  => "NETWORK",
  269.      "alsa" => "SOUND",
  270.      "am-utils" => "AUTOMOUNTER",
  271.      "amavis" => "ANTIVIRUS",
  272. @@ -203,6 +204,8 @@
  273.      "atftpd" => "FTP_SERVER",
  274.      "aumix" => "SOUND",
  275.      "autofs" => "AUTOMOUNTER",
  276. +    "avahi-daemon" => "NETWORK",
  277. +    "avahi-dnsconfd" => "DYNAMIC_DNS",
  278.      "bind" => "NETWORK",
  279.      "binfmt-support" => "SYSTEM",
  280.      "bootlogd" => "SYSTEM",
  281. @@ -212,6 +215,7 @@
  282.      "clamav-daemon" => "ANTIVIRUS",
  283.      "courier" => "MTA",
  284.      "courier-mta" => "MTA",
  285. +    "cpufreq" => "SYSTEM",
  286.      "cpufreqd" => "SYSTEM",
  287.      "cron" => "COMMAND_SCHEDULER",
  288.      "crond" => "COMMAND_SCHEDULER",
  289. @@ -220,12 +224,14 @@
  290.      "cupsys" => "PRINTER_SERVICE",
  291.      "daytime" => "NETWORK",
  292.      "daytime-udp" => "NETWORK",
  293. +    "dbus" => "SYSTEM",
  294.      "dbus-1" => "SYSTEM",
  295.      "ddclient" => "DYNAMIC_DNS",
  296.      "dhis-client" => "DYNAMIC_DNS",
  297.      "dictd" => "DICT",
  298.      "echo" => "NETWORK",
  299.      "echo-udp" => "NETWORK",
  300. +    "esd" => "SOUND",
  301.      "esound" => "SOUND",
  302.      "exim" => "MTA",
  303.      "fam" => "SYSTEM",
  304. @@ -237,9 +243,12 @@
  305.      "ftpd" => "FTP_SERVER",
  306.      "gdm" => "DISPLAY_MANAGER",
  307.      "gpm" => "SYSTEM",                        #FIXME
  308. +    "hal" => "SYSTEM",
  309. +    "heimdal-kdc" => "heimdal-kdc",
  310.      "hdparm" => "SYSTEM",
  311.      "hotplug" => "SYSTEM",
  312.      "httpd"        => "WEB_SERVER",
  313. +    "hwd" => "SYSTEM",
  314.      "inetd" => "NETWORK",
  315.      "iptables" => "NETWORK",
  316.      "irda" => "SYSTEM",
  317. @@ -261,11 +270,13 @@
  318.      "mldonkey-server" => "FILE_SHARING",
  319.      "modules" => "SYSTEM",
  320.      "module-init-tools" => "SYSTEM",
  321. +    "mono" => "SYSTEM",
  322.      "mysql" => "DATABASE_SERVER",
  323.      "muddleftpd" => "FTP_SERVER",
  324.      "named" => "NETWORK",
  325.      "netfs" => "SYSTEM",
  326.      "network" => "SYSTEM",
  327. +    "networkmanager" => "NETWORK",
  328.      "nfs"        => "FILE_SERVER",
  329.      "nfs-user-server"        => "FILE_SERVER",
  330.      "nfs-kernel-server"        => "FILE_SERVER",
  331. @@ -285,6 +296,7 @@
  332.      "postgresql" => "DATABASE_SERVER",
  333.      "postgresql-7.4" => "DATABASE_SERVER",
  334.      "postgresql-8.0" => "DATABASE_SERVER",
  335. +    "powersaved" => "SYSTEM",
  336.      "ppp"        => "NETWORK",
  337.      "proftpd" => "FTP_SERVER",
  338.      "privoxy" => "NETWORK",
  339. @@ -304,11 +316,14 @@
  340.      "sgi_fam" => "SYSTEM",
  341.      "smartmontools" => "SYSTEM",
  342.      "spamassassin" => "SYSTEM",
  343. +    "slapd" => "SYSTEM",
  344.      "snmpd"        => "NETWORK",
  345.      "ssh"        => "SECURE_SHELL_SERVER",
  346.      "sshd" => "SECURE_SHELL_SERVER",
  347.      "sysklogd" => "SYSTEM_LOGGER",
  348.      "syslog" => "SYSTEM_LOGGER",
  349. +    "syslog-ng" => "SYSTEM_LOGGER",
  350. +    "svnserver" => "NETWORK",
  351.      "tftpd-hpa" => "FTP_SERVER",
  352.      "time" => "NETWORK",
  353.      "time-udp" => "NETWORK",
  354. diff -Naur system-tools-backends-1.4.2/service.pl.in system-tools-backends-1.4.2-new/service.pl.in
  355. --- system-tools-backends-1.4.2/service.pl.in        2006-01-02 16:42:19.000000000 +0100
  356. +++ system-tools-backends-1.4.2-new/service.pl.in        2006-04-14 11:43:37.000000000 +0200
  357. @@ -1531,10 +1531,10 @@
  358.      }
  359.      if((!$active) && ( -f "/var/run/daemons/$script"))
  360.      {
  361. -            &gst_service_archlinux_run_script($script,"start");
  362. +            &gst_service_archlinux_run_script($script,"stop");
  363.      }
  364. -   
  365. -   
  366. +
  367. +
  368.      foreach my $line (@rcconflines)
  369.      {
  370.        if($line =~ /\DAEMONS=/)
  371. diff -Naur system-tools-backends-1.4.2/shares-conf.in system-tools-backends-1.4.2-new/shares-conf.in
  372. --- system-tools-backends-1.4.2/shares-conf.in        2005-11-21 02:19:47.000000000 +0100
  373. +++ system-tools-backends-1.4.2-new/shares-conf.in        2006-04-14 12:03:38.000000000 +0200
  374. @@ -73,7 +73,7 @@
  375.                "pld-1.0", "pld-1.1", "pld-1.99",
  376.                "conectiva-9", "conectiva-10",
  377.                "slackware-9.1.0", "slackware-10.0.0", "slackware-10.1.0", "slackware-10.2.0",
  378. -              "gentoo", "vlos-1.2", "freebsd-5", "rpath");
  379. +              "gentoo", "vlos-1.2", "freebsd-5", "rpath", "archlinux");

  380. $description =<<"end_of_description;";
  381.         Configures network shares for import or export.
  382. @@ -558,6 +558,7 @@
  383.       "vlos-1.2"     => "gentoo",
  384.       "freebsd-5"    => "freebsd-5",
  385.       "freebsd-6"    => "freebsd-5",
  386. +     "archlinux"         => "archlinux",
  387.      );

  388.    my %dist_table =
  389. @@ -602,6 +603,14 @@
  390.           [ "nfsinstalled",  \&gst_service_installed,          "nfs" ],
  391.         ]},

  392. +     "archlinux" => {
  393. +       table => [
  394. +         [ "smbuse",        \&gst_service_archlinux_get_status,  "samba" ],
  395. +         [ "smbinstalled",  \&gst_service_rcng_installed,          "samba" ],
  396. +         [ "nfsuse",        \&gst_service_archlinux_get_status,    "nfsd" ],
  397. +         [ "nfsinstalled",  \&gst_service_rcng_installed,          "nfsd" ],
  398. +       ]},
  399. +
  400.       "freebsd-5" => {
  401.         table => [
  402.           [ "smbuse",        \&gst_service_rcng_get_status, "smbd" ],
  403. diff -Naur system-tools-backends-1.4.2/time-conf.in system-tools-backends-1.4.2-new/time-conf.in
  404. --- system-tools-backends-1.4.2/time-conf.in        2006-01-02 16:47:30.000000000 +0100
  405. +++ system-tools-backends-1.4.2-new/time-conf.in        2006-04-14 10:45:14.000000000 +0200
  406. @@ -754,11 +754,11 @@
  407.            [ "local_time",   \&time_get_local_time ],
  408.            [ "timezone",     \&time_get_rh62_zone, [LOCAL_TIME, ZONEINFO] ],
  409.            [ "sync",         \&gst_parse_split_all_array_with_pos, NTP_CONF, "server", 0, "[ \t]+", "[ \t]+" ],
  410. -          [ "sync_active",  \&gst_service_archlinux_get_status, "ntpd" ],
  411. -          [ "ntpinstalled", \&gst_service_rcng_installed, [ "ntpd", "openntpd" ]],
  412. +          [ "sync_active",  \&gst_service_archlinux_get_status, "ntpdate" ],
  413. +          [ "ntpinstalled", \&gst_service_rcng_installed, [ "ntpdate", "openntpd" ]],
  414.            ]
  415.          },
  416. -       
  417. +
  418.         "freebsd-5" =>
  419.         {
  420.           fn =>
  421. @@ -997,10 +997,10 @@
  422.            [ "timezone",     \&time_set_archlinux_zone, [LOCAL_TIME, ZONEINFO] ],
  423.            [ "local_time",   \&time_set_local_time ],
  424.            [ "sync",         \&time_replace_ntp_servers, NTP_CONF, "server", "[ \t]+" ],
  425. -          [ "sync_active",  \&gst_service_archlinux_set_status, "ntpd", "%sync_active%" ],
  426. +          [ "sync_active",  \&gst_service_archlinux_set_status, "ntpdate", "%sync_active%" ],
  427.           ]
  428.         },
  429. -      
  430. +
  431.         "freebsd-5" =>
  432.         {
  433.           fn =>
  434. diff -Naur system-tools-backends-1.4.2/users-conf.in system-tools-backends-1.4.2-new/users-conf.in
  435. --- system-tools-backends-1.4.2/users-conf.in        2006-01-02 16:48:06.000000000 +0100
  436. +++ system-tools-backends-1.4.2-new/users-conf.in        2006-04-14 10:31:21.000000000 +0200
  437. @@ -179,13 +179,17 @@
  438.    "adm"       => _("Monitor system logs"),
  439.    "admin"     => _("Administer the system"),
  440.    "audio"     => _("Use audio devices"),
  441. +  "camera"          => _("Use Photo Camera's"),
  442.    "cdrom"     => _("Use CD-ROM drives"),
  443.    "dialout"   => _("Use modems"),
  444.    "dip"       => _("Connect to Internet using a modem"),
  445.    "fax"       => _("Send and receive faxes"),
  446.    "floppy"    => _("Use floppy drives"),
  447. +  "optical"          => _("Use optical Devices"),
  448.    "plugdev"   => _("Enable access to external storage devices automatically"),
  449. +  "powersave" => _("Allow users to use powersave actions"),
  450.    "scanner"   => _("Use scanners"),
  451. +  "storage"   => _("Enable access to external storage devices automatically"),
  452.    "tape"      => _("Use tape drives"),
  453.    "wheel"     => _("Be able to get administrator privileges"),
  454. );
复制代码
发表于 2007-6-8 15:04:41 | 显示全部楼层
那两个patch很老了,即使修改(自己参照内容修改后,重做个patch),也不一定好使
http://www.nabble.com/Rv%3A-Erro ... 4115.html#a10701717
http://bbs.archlinux.org/viewtopic.php?pid=254720

顺便说几句题外话,呵呵
arch的开发人员很少,多数东西很新的同时也有很多老古董的东东,有些让人郁闷,个人使用了一段时间后还是退回debian了,因为使用中有些很莫名的东东,比如明明同样的zsh和w3m的配制,arch下的w3m只能以/usr/bin/w3m打开窗口,使用w3m只是显示帮助后关闭,而w3m打开网页却正常,搭配enscript使用的lessfilter工作一直不正常,同样的使用一样的font.conf时,显示一些utf8的东东,debian下less显示正常,arch下的汉字有些就是乱码
回复 支持 反对

使用道具 举报

发表于 2007-6-8 15:17:33 | 显示全部楼层
arch的安装方法还是最先进的,呵呵。
以前安装linux到移动硬盘,最先成功的就是arch了
回复 支持 反对

使用道具 举报

发表于 2007-6-8 22:18:38 | 显示全部楼层
最好的安装,我觉得应该不适arch。
如果说knoppix比arch的安装方法好。我觉得应该有点人认同吧。
~而且最好的方式不是用make install吗?哈哈
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表