]> Frank Brehm's Git Trees - config/uhu1/etc.git/commitdiff
Current state
authorFrank Brehm <frank@brehm-online.com>
Tue, 5 Nov 2013 23:49:47 +0000 (00:49 +0100)
committerFrank Brehm <frank@brehm-online.com>
Tue, 5 Nov 2013 23:49:47 +0000 (00:49 +0100)
75 files changed:
.etckeeper
cifs-utils/idmap-plugin [new symlink]
conf.d/sntp [new file with mode: 0644]
conf.d/spamd
config-archive/etc/cron.daily/logrotate [new file with mode: 0755]
config-archive/etc/cron.daily/logrotate.dist.new [new file with mode: 0755]
courier-imap/imapd-ssl
courier-imap/pop3d-ssl
cups/cups-browsed.conf
cups/cups-files.conf
cups/cupsd.conf
cups/snmp.conf
default/grub [new file with mode: 0644]
env.d/gcc/x86_64-pc-linux-gnu-4.6.3 [deleted file]
env.d/gcc/x86_64-pc-linux-gnu-4.7.3 [new file with mode: 0644]
etckeeper/pre-commit.d/30store-metadata
fonts/conf.avail/10-autohint.conf
fonts/conf.avail/10-no-sub-pixel.conf
fonts/conf.avail/10-scale-bitmap-fonts.conf [new file with mode: 0644]
fonts/conf.avail/10-sub-pixel-bgr.conf
fonts/conf.avail/10-sub-pixel-rgb.conf
fonts/conf.avail/10-sub-pixel-vbgr.conf
fonts/conf.avail/10-sub-pixel-vrgb.conf
fonts/conf.avail/10-unhinted.conf
fonts/conf.avail/11-lcdfilter-default.conf [new file with mode: 0644]
fonts/conf.avail/11-lcdfilter-legacy.conf [new file with mode: 0644]
fonts/conf.avail/11-lcdfilter-light.conf [new file with mode: 0644]
fonts/conf.avail/20-fix-globaladvance.conf [deleted file]
fonts/conf.avail/20-unhint-small-vera.conf
fonts/conf.avail/25-unhint-nonlatin.conf
fonts/conf.avail/30-metric-aliases.conf
fonts/conf.avail/30-urw-aliases.conf
fonts/conf.avail/40-nonlatin.conf
fonts/conf.avail/45-latin.conf
fonts/conf.avail/50-user.conf
fonts/conf.avail/65-fonts-persian.conf
fonts/conf.avail/65-nonlatin.conf
fonts/conf.avail/80-delicious.conf
fonts/conf.d/10-scale-bitmap-fonts.conf [new symlink]
fonts/conf.d/20-fix-globaladvance.conf [deleted symlink]
fonts/fonts.conf
fonts/fonts.dtd [deleted file]
grub.d/00_header [new file with mode: 0755]
grub.d/10_linux [new file with mode: 0755]
grub.d/20_linux_xen [new file with mode: 0755]
grub.d/30_os-prober [new file with mode: 0755]
grub.d/40_custom [new file with mode: 0755]
grub.d/41_custom [new file with mode: 0755]
grub.d/README [new file with mode: 0644]
init.d/clamd
init.d/fancontrol
init.d/ip6tables
init.d/iptables
init.d/mdraid
init.d/ntp-client
init.d/sntp [new file with mode: 0755]
init.d/spamd
ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf
mdadm.conf
pam.d/system-auth-winbind [new file with mode: 0644]
php/apache2-php5.5/php.ini
php/cgi-php5.5/php.ini
php/cli-php5.5/php.ini
php/embed-php5.5/php.ini
php/fpm-php5.5/php.ini
portage/make.conf
portage/package.keywords
portage/package.use
request-key.d/cifs.idmap.conf [new file with mode: 0644]
request-key.d/cifs.upcall.conf [new file with mode: 0644]
security/pam_winbind.conf [new file with mode: 0644]
sensors3.conf
systemd/system/ntpdate.service.d/00gentoo.conf [new file with mode: 0644]
systemd/system/slapd.service.d/00gentoo.conf [new file with mode: 0644]
systemd/system/sntp.service.d/00gentoo.conf [new file with mode: 0644]

index 0f315284edeb262afa053481e839c656068d99fe..5cd9ec17f1ab60b976c5d041df83a765e182bac6 100755 (executable)
@@ -15,7 +15,6 @@ mkdir -p './php/embed-php5.5/ext'
 mkdir -p './php/embed-php5.5/ext-active'
 mkdir -p './php/fpm-php5.5/ext'
 mkdir -p './php/fpm-php5.5/ext-active'
-mkdir -p './request-key.d'
 mkdir -p './salt/pki/minions_pre'
 mkdir -p './salt/pki/minions_rejected'
 mkdir -p './security/limits.d'
@@ -33,7 +32,6 @@ mkdir -p './unixODBC/ODBCDataSources'
 maybe chmod 0755 '.'
 maybe chmod 0700 './.etckeeper'
 maybe chmod 0644 './.gitignore'
-maybe chmod 0600 './.pwd.lock'
 maybe chmod 0644 './DIR_COLORS'
 maybe chmod 0644 './GeoIP.conf'
 maybe chmod 0755 './ImageMagick-6'
@@ -147,7 +145,7 @@ maybe chgrp 'named' './bind/rndc.key'
 maybe chmod 0640 './bind/rndc.key'
 maybe chmod 0755 './ca-certificates'
 maybe chmod 0644 './ca-certificates.conf'
-maybe chmod 0755 './ca-certificates/update.d'
+maybe chmod 0755 './cifs-utils'
 maybe chmod 0644 './clamd.conf'
 maybe chmod 0644 './colordiffrc'
 maybe chmod 0644 './colordiffrc-lightbg'
@@ -206,6 +204,7 @@ maybe chmod 0644 './conf.d/slapd'
 maybe chmod 0644 './conf.d/smartd'
 maybe chmod 0644 './conf.d/snmpd'
 maybe chmod 0644 './conf.d/snmptrapd'
+maybe chmod 0644 './conf.d/sntp'
 maybe chmod 0644 './conf.d/spamd'
 maybe chmod 0644 './conf.d/sshd'
 maybe chmod 0644 './conf.d/staticroute'
@@ -273,8 +272,10 @@ maybe chmod 0660 './config-archive/etc/courier/authlib/authdaemonrc'
 maybe chmod 0660 './config-archive/etc/courier/authlib/authdaemonrc.dist'
 maybe chmod 0660 './config-archive/etc/courier/authlib/authdaemonrc.dist.dist'
 maybe chmod 0755 './config-archive/etc/cron.daily'
+maybe chmod 0755 './config-archive/etc/cron.daily/logrotate'
 maybe chmod 0755 './config-archive/etc/cron.daily/logrotate.cron'
 maybe chmod 0755 './config-archive/etc/cron.daily/logrotate.cron.dist.new'
+maybe chmod 0755 './config-archive/etc/cron.daily/logrotate.dist.new'
 maybe chmod 0755 './config-archive/etc/cups'
 maybe chmod 0640 './config-archive/etc/cups/cupsd.conf'
 maybe chmod 0640 './config-archive/etc/cups/cupsd.conf.default'
@@ -701,12 +702,11 @@ maybe chmod 0755 './dbus-1/system.d'
 maybe chmod 0644 './dbus-1/system.d/.keep_sys-apps_dbus-0'
 maybe chmod 0644 './dbus-1/system.d/cups.conf'
 maybe chmod 0755 './default'
+maybe chmod 0644 './default/grub'
 maybe chmod 0600 './default/useradd'
 maybe chmod 0644 './dhcpcd.conf'
 maybe chmod 0644 './dispatch-conf.conf'
-maybe chmod 0644 './dmtab'
 maybe chmod 0755 './dpkg'
-maybe chmod 0755 './dpkg/dpkg.cfg.d'
 maybe chmod 0644 './drirc'
 maybe chmod 0644 './e2fsck.conf'
 maybe chmod 0755 './eclean'
@@ -755,7 +755,7 @@ maybe chmod 0644 './env.d/binutils/config-x86_64-pc-linux-gnu'
 maybe chmod 0644 './env.d/binutils/x86_64-pc-linux-gnu-2.23.1'
 maybe chmod 0755 './env.d/gcc'
 maybe chmod 0644 './env.d/gcc/config-x86_64-pc-linux-gnu'
-maybe chmod 0644 './env.d/gcc/x86_64-pc-linux-gnu-4.6.3'
+maybe chmod 0644 './env.d/gcc/x86_64-pc-linux-gnu-4.7.3'
 maybe chmod 0755 './env.d/python'
 maybe chmod 0644 './env.d/python/.keep_app-admin_eselect-python-0'
 maybe chmod 0644 './env.d/python/config'
@@ -825,12 +825,15 @@ maybe chmod 0755 './fonts'
 maybe chmod 0755 './fonts/conf.avail'
 maybe chmod 0644 './fonts/conf.avail/10-autohint.conf'
 maybe chmod 0644 './fonts/conf.avail/10-no-sub-pixel.conf'
+maybe chmod 0644 './fonts/conf.avail/10-scale-bitmap-fonts.conf'
 maybe chmod 0644 './fonts/conf.avail/10-sub-pixel-bgr.conf'
 maybe chmod 0644 './fonts/conf.avail/10-sub-pixel-rgb.conf'
 maybe chmod 0644 './fonts/conf.avail/10-sub-pixel-vbgr.conf'
 maybe chmod 0644 './fonts/conf.avail/10-sub-pixel-vrgb.conf'
 maybe chmod 0644 './fonts/conf.avail/10-unhinted.conf'
-maybe chmod 0644 './fonts/conf.avail/20-fix-globaladvance.conf'
+maybe chmod 0644 './fonts/conf.avail/11-lcdfilter-default.conf'
+maybe chmod 0644 './fonts/conf.avail/11-lcdfilter-legacy.conf'
+maybe chmod 0644 './fonts/conf.avail/11-lcdfilter-light.conf'
 maybe chmod 0644 './fonts/conf.avail/20-unhint-small-dejavu-sans-mono.conf'
 maybe chmod 0644 './fonts/conf.avail/20-unhint-small-dejavu-sans.conf'
 maybe chmod 0644 './fonts/conf.avail/20-unhint-small-dejavu-serif.conf'
@@ -859,7 +862,6 @@ maybe chmod 0644 './fonts/conf.avail/99pdftoopvp.conf'
 maybe chmod 0755 './fonts/conf.d'
 maybe chmod 0644 './fonts/conf.d/README'
 maybe chmod 0644 './fonts/fonts.conf'
-maybe chmod 0644 './fonts/fonts.dtd'
 maybe chmod 0755 './foomatic'
 maybe chmod 0755 './foomatic/direct'
 maybe chmod 0644 './foomatic/filter.conf'
@@ -886,6 +888,14 @@ maybe chmod 0644 './gpm/gpm-syn.conf'
 maybe chmod 0644 './gpm/gpm-twiddler.conf'
 maybe chmod 0644 './group'
 maybe chmod 0600 './group-'
+maybe chmod 0755 './grub.d'
+maybe chmod 0755 './grub.d/00_header'
+maybe chmod 0755 './grub.d/10_linux'
+maybe chmod 0755 './grub.d/20_linux_xen'
+maybe chmod 0755 './grub.d/30_os-prober'
+maybe chmod 0755 './grub.d/40_custom'
+maybe chmod 0755 './grub.d/41_custom'
+maybe chmod 0644 './grub.d/README'
 maybe chmod 0400 './gshadow'
 maybe chmod 0600 './gshadow-'
 maybe chmod 0644 './gssapi_mech.conf'
@@ -958,7 +968,6 @@ maybe chmod 0755 './init.d/mit-krb5kdc'
 maybe chmod 0755 './init.d/mit-krb5kpropd'
 maybe chmod 0755 './init.d/modules'
 maybe chmod 0755 './init.d/mount-ro'
-maybe chmod 0755 './init.d/mtab'
 maybe chmod 0755 './init.d/mysql'
 maybe chmod 0755 './init.d/nagios'
 maybe chmod 0755 './init.d/named'
@@ -996,6 +1005,7 @@ maybe chmod 0755 './init.d/slapd'
 maybe chmod 0755 './init.d/smartd'
 maybe chmod 0755 './init.d/snmpd'
 maybe chmod 0755 './init.d/snmptrapd'
+maybe chmod 0755 './init.d/sntp'
 maybe chmod 0755 './init.d/spamd'
 maybe chmod 0755 './init.d/sshd'
 maybe chmod 0755 './init.d/stunnel'
@@ -1050,7 +1060,6 @@ maybe chmod 0755 './layman'
 maybe chmod 0644 './layman/layman.cfg'
 maybe chmod 0755 './layman/overlays'
 maybe chmod 0644 './layman/overlays/.keep_app-portage_layman-0'
-maybe chmod 0644 './ld.so.cache'
 maybe chmod 0644 './ld.so.conf'
 maybe chmod 0755 './ld.so.conf.d'
 maybe chmod 0644 './ld.so.conf.d/05binutils.conf'
@@ -1081,17 +1090,13 @@ maybe chmod 0755 './logwatch'
 maybe chmod 0644 './logwatch/.keep_sys-apps_logwatch-0'
 maybe chmod 0755 './lvm'
 maybe chmod 0700 './lvm/archive'
-maybe chmod 0600 './lvm/archive/vg00_00000.vg'
 maybe chmod 0700 './lvm/backup'
-maybe chmod 0600 './lvm/backup/vg00'
 maybe chmod 0700 './lvm/cache'
-maybe chmod 0600 './lvm/cache/.cache'
 maybe chmod 0644 './lvm/lvm.conf'
 maybe chmod 0644 './machine-id'
 maybe chmod 0755 './mail'
 maybe chmod 0644 './mail/.gitignore'
 maybe chmod 0644 './mail/aliases'
-maybe chmod 0644 './mail/aliases.db'
 maybe chmod 0755 './mail/spamassassin'
 maybe chmod 0644 './mail/spamassassin/init.pre'
 maybe chmod 0644 './mail/spamassassin/local.cf'
@@ -1125,9 +1130,6 @@ maybe chmod 0644 './mlocate-cron.conf'
 maybe chmod 0755 './modprobe.d'
 maybe chmod 0644 './modprobe.d/aliases.conf'
 maybe chmod 0644 './modprobe.d/i386.conf'
-maybe chmod 0644 './motd'
-maybe chmod 0644 './motd.tail'
-maybe chmod 0644 './mtab'
 maybe chmod 0755 './mutt'
 maybe chmod 0644 './mutt/Muttrc'
 maybe chmod 0644 './mutt/Muttrc.dist'
@@ -1284,6 +1286,7 @@ maybe chmod 0644 './pam.d/start-stop-daemon'
 maybe chmod 0644 './pam.d/su'
 maybe chmod 0644 './pam.d/sudo'
 maybe chmod 0644 './pam.d/system-auth'
+maybe chmod 0644 './pam.d/system-auth-winbind'
 maybe chmod 0644 './pam.d/system-local-login'
 maybe chmod 0644 './pam.d/system-login'
 maybe chmod 0644 './pam.d/system-remote-login'
@@ -1409,7 +1412,6 @@ maybe chgrp 'postgrey' './postfix/postgrey_whitelist_recipients'
 maybe chmod 0640 './postfix/postgrey_whitelist_recipients'
 maybe chmod 0600 './postfix/saslpass'
 maybe chmod 0644 './postfix/smtp_auth'
-maybe chmod 0644 './postfix/smtp_auth.db'
 maybe chmod 0755 './postgresql-9.1'
 maybe chown 'postgres' './postgresql-9.1/pg_hba.conf'
 maybe chgrp 'postgres' './postgresql-9.1/pg_hba.conf'
@@ -1452,6 +1454,8 @@ maybe chmod 0644 './reoback/files.conf'
 maybe chmod 0644 './reoback/settings.conf'
 maybe chmod 0644 './request-key.conf'
 maybe chmod 0755 './request-key.d'
+maybe chmod 0644 './request-key.d/cifs.idmap.conf'
+maybe chmod 0644 './request-key.d/cifs.upcall.conf'
 maybe chmod 0644 './resolv.conf'
 maybe chmod 0755 './revdep-rebuild'
 maybe chmod 0644 './revdep-rebuild/60-java'
@@ -1501,6 +1505,7 @@ maybe chmod 0644 './security/namespace.conf'
 maybe chmod 0755 './security/namespace.d'
 maybe chmod 0755 './security/namespace.init'
 maybe chmod 0644 './security/pam_env.conf'
+maybe chmod 0644 './security/pam_winbind.conf'
 maybe chmod 0644 './security/time.conf'
 maybe chmod 0755 './sensors.d'
 maybe chmod 0644 './sensors3.conf'
@@ -1636,6 +1641,14 @@ maybe chmod 0644 './syslog-ng/syslog-ng.conf'
 maybe chmod 0644 './syslog-ng/syslog-ng.conf.orig'
 maybe chmod 0644 './sysstat'
 maybe chmod 0644 './sysstat.ioconf'
+maybe chmod 0755 './systemd'
+maybe chmod 0755 './systemd/system'
+maybe chmod 0755 './systemd/system/ntpdate.service.d'
+maybe chmod 0644 './systemd/system/ntpdate.service.d/00gentoo.conf'
+maybe chmod 0755 './systemd/system/slapd.service.d'
+maybe chmod 0644 './systemd/system/slapd.service.d/00gentoo.conf'
+maybe chmod 0755 './systemd/system/sntp.service.d'
+maybe chmod 0644 './systemd/system/sntp.service.d/00gentoo.conf'
 maybe chmod 0755 './t1lib'
 maybe chmod 0644 './t1lib/t1lib.config'
 maybe chmod 0755 './terminfo'
@@ -1662,7 +1675,6 @@ maybe chmod 0644 './terminfo/x/xterm-color'
 maybe chmod 0644 './terminfo/x/xterm-xfree86'
 maybe chmod 0755 './texmf'
 maybe chmod 0755 './texmf/dvipdfm'
-maybe chmod 0755 './texmf/dvipdfm/config'
 maybe chmod 0755 './texmf/dvipdfmx'
 maybe chmod 0644 './texmf/dvipdfmx/dvipdfmx.cfg'
 maybe chmod 0755 './texmf/dvips.d'
diff --git a/cifs-utils/idmap-plugin b/cifs-utils/idmap-plugin
new file mode 120000 (symlink)
index 0000000..36886ea
--- /dev/null
@@ -0,0 +1 @@
+/usr/lib64/cifs-utils/idmapwb.so
\ No newline at end of file
diff --git a/conf.d/sntp b/conf.d/sntp
new file mode 100644 (file)
index 0000000..d11983a
--- /dev/null
@@ -0,0 +1,4 @@
+# /etc/conf.d/sntp
+
+# Options to pass to sntp
+SNTP_OPTS="-s 0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
index b6fca036f2e50afc658183c9f96a1b72023c8038..b3cd1acd8fa3a4b303613072579b0ab3f5ade085 100644 (file)
@@ -38,7 +38,7 @@ SPAMD_OPTS="-m 5 -c -H"
 # spamd stores its pid in this file. If you use the -u option to
 # run spamd under another user, you might need to adjust it.
 
-PIDFILE="/var/run/spamd.pid"
+PIDFILE="/run/spamd.pid"
 
 # SPAMD_NICELEVEL lets you set the 'nice'ness of the running 
 # spamd process
diff --git a/config-archive/etc/cron.daily/logrotate b/config-archive/etc/cron.daily/logrotate
new file mode 100755 (executable)
index 0000000..0a16a38
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+#/usr/sbin/logrotate /etc/logrotate.conf
+if [ -x /usr/scripts/logrotate.pl ] ; then
+    /usr/scripts/logrotate.pl -v >>/var/log/logrotate.log
+    EXITVALUE=$?
+    if [ $EXITVALUE != 0 ]; then
+        /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
+    fi
+fi
+exit 0
diff --git a/config-archive/etc/cron.daily/logrotate.dist.new b/config-archive/etc/cron.daily/logrotate.dist.new
new file mode 100755 (executable)
index 0000000..c6d50d4
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+/usr/sbin/logrotate /etc/logrotate.conf
+EXITVALUE=$?
+if [ $EXITVALUE != 0 ]; then
+    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
+fi
+exit 0
index ee723aca396458b718977e8eed6a349b90c3c2e6..be0fb3ffb1612acb434ba71dc8a4f017ba1b80a5 100644 (file)
@@ -1,4 +1,4 @@
-##VERSION: $Id: imapd-ssl.dist.in,v 1.21 2008/07/12 20:17:24 mrsam Exp $
+##VERSION: $Id: imapd-ssl.dist.in,v 1.22 2009/08/12 22:25:49 mrsam Exp $
 #
 # imapd-ssl created from imapd-ssl.dist by sysconftool
 #
@@ -147,7 +147,7 @@ COURIERTLS=/usr/sbin/couriertls
 #
 # OpenSSL:
 #
-# TLS_CIPHER_LIST="SSLv3:TLSv1:!SSLv2:HIGH:!LOW:!MEDIUM:!EXP:!NULL@STRENGTH"
+# TLS_CIPHER_LIST="SSLv3:TLSv1:!SSLv2:HIGH:!LOW:!MEDIUM:!EXP:!NULL:!aNULL@STRENGTH"
 #
 # To enable SSL2, remove the obvious "!SSLv2" part from the above list.
 #
index 56f55d2265f6a80bf40503e0e1d92a807c3083f8..472fa527130f19566ae6ea5ef2d8291434448ad7 100644 (file)
@@ -1,4 +1,4 @@
-##VERSION: $Id: pop3d-ssl.dist.in,v 1.22 2008/07/12 20:17:25 mrsam Exp $
+##VERSION: $Id: pop3d-ssl.dist.in,v 1.23 2009/08/12 22:25:49 mrsam Exp $
 #
 # pop3d-ssl created from pop3d-ssl.dist by sysconftool
 #
@@ -134,7 +134,7 @@ TLS_STARTTLS_PROTOCOL=TLS1
 #
 # OpenSSL:
 #
-# TLS_CIPHER_LIST="SSLv3:TLSv1:!SSLv2:HIGH:!LOW:!MEDIUM:!EXP:!NULL@STRENGTH"
+# TLS_CIPHER_LIST="SSLv3:TLSv1:!SSLv2:HIGH:!LOW:!MEDIUM:!EXP:!NULL:!aNULL@STRENGTH"
 #
 # To enable SSL2, remove the obvious "!SSLv2" part from the above list.
 #
index 57d2debf83e093c063ba31d959a992cb8f76e1e0..c006e554dd0e3606c88bbfa52ae0e5e243b80898 100644 (file)
@@ -22,5 +22,10 @@ BrowseRemoteProtocols DNSSD,CUPS
 # Use BrowsePoll to poll a particular CUPS server
 # BrowsePoll cups.example.com
 # BrowsePoll cups.example.com:631
+# BrowsePoll cups.example.com:631/version=1.1
+
+# Use DomainSocket to access the local CUPS daemon via another than the
+# default domain socket
+# DomainSocket /var/lib/run/cups/cups.sock
 
 # Unknown directives are ignored, also unknown values.
index 9edfd39ccecaa6e43503985e464759151b3bc805..8dea2f5bb7dd5e8cb222f653bda06dbc700257d4 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: cups-files.conf.in 10765 2012-12-13 20:36:17Z mike $"
+# "$Id: cups-files.conf.in 11221 2013-08-06 16:16:01Z msweet $"
 #
 # Sample file/directory/user/group configuration file for the CUPS scheduler.
 # See "man cups-files.conf" for a complete description of this file.
@@ -8,6 +8,9 @@
 # List of events that are considered fatal errors for the scheduler...
 #FatalErrors config
 
+# Do we call fsync() after writing configuration or status files?
+#SyncOnClose No
+
 # Default user and group for filters/backends/helper programs; this cannot be
 # any user or group that resolves to ID 0 for security reasons...
 #User lp
@@ -94,5 +97,5 @@ PageLog /var/log/cups/page_log
 #TempDir /var/spool/cups/tmp
 
 #
-# End of "$Id: cups-files.conf.in 10765 2012-12-13 20:36:17Z mike $".
+# End of "$Id: cups-files.conf.in 11221 2013-08-06 16:16:01Z msweet $".
 #
index 43280df9decbc0fc948176c5db816260cd53968b..d3ac3230757bfb722af1f8e376ac1e1b7d341171 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: cupsd.conf.in 10710 2012-11-26 18:26:01Z mike $"
+# "$Id: cupsd.conf.in 11173 2013-07-23 12:31:34Z msweet $"
 #
 # Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
 # complete description of this file.
@@ -130,5 +130,5 @@ WebInterface Yes
 </Policy>
 
 #
-# End of "$Id: cupsd.conf.in 10710 2012-11-26 18:26:01Z mike $".
+# End of "$Id: cupsd.conf.in 11173 2013-07-23 12:31:34Z msweet $".
 #
index 5539d503c264699f5596505ed15398236f8f017e..17d376e5c05cba87ed6269c7442eadd568e214b2 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: snmp.conf.in 9045 2010-03-24 07:48:42Z mike $"
+# "$Id: snmp.conf.in 11173 2013-07-23 12:31:34Z msweet $"
 #
 #   Sample SNMP configuration file for CUPS.  See "man cups-snmp.conf" for a
 #   complete description of this file.
@@ -9,5 +9,5 @@ Address @LOCAL
 Community public
 
 #
-# End of "$Id: snmp.conf.in 9045 2010-03-24 07:48:42Z mike $".
+# End of "$Id: snmp.conf.in 11173 2013-07-23 12:31:34Z msweet $".
 #
diff --git a/default/grub b/default/grub
new file mode 100644 (file)
index 0000000..5075314
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/files/grub.default-2,v 1.4 2013/09/21 18:10:55 floppym Exp $
+#
+# To populate all changes in this file you need to regenerate your
+# grub configuration file afterwards:
+#     'grub2-mkconfig -o /boot/grub/grub.cfg'
+#
+# See the grub info page for documentation on possible variables and
+# their associated values. 
+
+GRUB_DISTRIBUTOR="Gentoo"
+
+GRUB_DEFAULT=0
+GRUB_HIDDEN_TIMEOUT=0
+GRUB_HIDDEN_TIMEOUT_QUIET=true
+GRUB_TIMEOUT=10
+
+# Append parameters to the linux kernel command line
+# GRUB_CMDLINE_LINUX=""
+
+# Append parameters to the linux kernel command line for non-recovery entries
+#GRUB_CMDLINE_LINUX_DEFAULT=""
+
+# Uncomment to disable graphical terminal (grub-pc only)
+#GRUB_TERMINAL=console
+
+# The resolution used on graphical terminal.
+# Note that you can use only modes which your graphic card supports via VBE.
+# You can see them in real GRUB with the command `vbeinfo'.
+#GRUB_GFXMODE=640x480
+
+# Path to theme spec txt file.
+# The starfield is by default provided with use truetype.
+# NOTE: when enabling custom theme, ensure you have required font/etc.
+#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"
+
+# Background image used on graphical terminal.
+# Can be in various bitmap formats.
+#GRUB_BACKGROUND="/boot/grub/mybackground.png"
+
+# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
+#GRUB_DISABLE_LINUX_UUID=true
+
+# Uncomment to disable generation of recovery mode menu entries
+#GRUB_DISABLE_RECOVERY=true
diff --git a/env.d/gcc/x86_64-pc-linux-gnu-4.6.3 b/env.d/gcc/x86_64-pc-linux-gnu-4.6.3
deleted file mode 100644 (file)
index 1f63693..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3:/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/32"
-MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/man"
-INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/info"
-STDCXX_INCDIR="g++-v4"
-CTARGET="x86_64-pc-linux-gnu"
-GCC_SPECS=""
-MULTIOSDIRS="../lib64:../lib32"
-GCC_PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3"
diff --git a/env.d/gcc/x86_64-pc-linux-gnu-4.7.3 b/env.d/gcc/x86_64-pc-linux-gnu-4.7.3
new file mode 100644 (file)
index 0000000..b16f64f
--- /dev/null
@@ -0,0 +1,10 @@
+PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3"
+ROOTPATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3"
+GCC_PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3"
+LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3:/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32"
+MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.3/man"
+INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.7.3/info"
+STDCXX_INCDIR="g++-v4"
+CTARGET="x86_64-pc-linux-gnu"
+GCC_SPECS=""
+MULTIOSDIRS="../lib64:../lib32"
index 03ce475a3846a6f0a82c582e2e5179eb3437362b..fa5b5c62ea4fb6657e8765c33ab97928f71d64fb 100755 (executable)
@@ -15,16 +15,25 @@ filter_unknown() {
 }
 
 filter_ignore() {
-       if [ "$VCS" = darcs ]; then
-               ignorefile=.darcsignore
-       fi
+       case "$VCS" in
+               darcs) ignorefile=.darcsignore ;;
+               git)   ignorefile=.gitignore ;;
+       esac
 
-       if [ "$VCS" = darcs ] && [ -e "$ignorefile" ]; then
-               patternsfile="$( mktemp -t etckeeper-$VCS.XXXXXXXXXX )"
-               grep -v '^[[:space:]]*\(#\|$\)' "$ignorefile" > "$patternsfile" || true
-               grep -Evf "$patternsfile"
-               rm -f "$patternsfile"
-               unset patternsfile
+       if [ -n "$ignorefile" ] && [ -e "$ignorefile" ]; then
+               listfile="$( mktemp -t etckeeper-$VCS.XXXXXXXXXX )"
+               case "$VCS" in
+                       darcs)
+                               grep -v '^[[:space:]]*\(#\|$\)' "$ignorefile" > "$listfile" || true
+                               grep -Evf "$listfile"
+                               ;;
+                       git)
+                               git ls-files --others --ignore --exclude-standard --directory > "$listfile" || true
+                               grep -Fvf "$listfile"
+                               ;;
+               esac
+               rm -f "$listfile"
+               unset listfile
        else
                cat -
        fi
@@ -74,7 +83,7 @@ generate_metadata() {
  
        # Store things that don't have the default user or group.
        # Store all file modes, in case the user has an unusual umask.
-       find $NOVCS \( -type f -or -type d \) -print | sort | perl -ne '
+       find $NOVCS \( -type f -or -type d \) -print | filter_ignore | sort | perl -ne '
                BEGIN { $q=chr(39) }
                sub uidname {
                        my $want=shift;
index c597bf41daceb27aaef8587ed93c3d8f685a7686..f9032ba3134c88f95a0a756c0beb0ad461e8baa5 100644 (file)
@@ -2,7 +2,13 @@
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>
 <!--  Use the Autohinter --> 
-  <match target="font">
-    <edit name="autohint" mode="assign"><bool>true</bool></edit>
+  <match target="pattern">
+    <!--
+      This configuration is available on the major desktop environments.
+      We shouldn't overwrite it with "assign" unconditionally.
+      Most clients may picks up the first value only. so using "append"
+      may simply works to avoid it.
+    -->
+    <edit name="autohint" mode="append"><bool>true</bool></edit>
   </match>
 </fontconfig>
index 87ada4ef2d25cb8afa6ea2a8dbafeb2c7ce52397..cf124656176032f3d7e852b06aff6e19fd4a2dcd 100644 (file)
@@ -2,7 +2,13 @@
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>
 <!--  Enable sub-pixel rendering --> 
-  <match target="font">
-    <edit name="rgba" mode="assign"><const>none</const></edit>
+  <match target="pattern">
+    <!--
+      This configuration is available on the major desktop environments.
+      We shouldn't overwrite it with "assign" unconditionally.
+      Most clients may picks up the first value only. so using "append"
+      may simply works to avoid it.
+    -->
+    <edit name="rgba" mode="append"><const>none</const></edit>
   </match>
 </fontconfig>
diff --git a/fonts/conf.avail/10-scale-bitmap-fonts.conf b/fonts/conf.avail/10-scale-bitmap-fonts.conf
new file mode 100644 (file)
index 0000000..e3bcd46
--- /dev/null
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+<match target="font">
+  <test name="scalable" compare="eq">
+    <bool>false</bool>
+  </test>
+  <edit name="pixelsizefixupfactor" mode="assign">
+    <divide>
+      <name target="pattern">pixelsize</name>
+      <name target="font"   >pixelsize</name>
+    </divide>
+  </edit>
+</match>
+<match target="font">
+  <test name="scalable" compare="eq">
+    <bool>false</bool>
+  </test>
+  <edit name="scalingnotneeded" mode="assign">
+    <and>
+      <less>
+        <name>pixelsizefixupfactor</name>
+        <double>1.2</double>
+      </less>
+      <more>
+        <name>pixelsizefixupfactor</name>
+        <double>0.8</double>
+      </more>
+    </and>
+  </edit>
+</match>
+<!--
+  So far we determined the scale factor.  Now, check and if
+  scaling is NOT desirable, just reset the scale factor to 1.0.
+  -->
+<match target="font">
+  <test name="scalable" compare="eq">
+    <bool>false</bool>
+  </test>
+  <test name="pixelsize" target="pattern" compare="less">
+    <double>64</double>
+  </test>
+  <test name="hinting" compare="eq">
+    <bool>true</bool>
+  </test>
+  <test name="scalingnotneeded" compare="eq">
+    <bool>true</bool>
+  </test>
+  <edit name="pixelsizefixupfactor" mode="assign">
+    <double>1.0</double>
+  </edit>
+</match>
+<!--
+  If we *are* going to scale, go ahead and do it.
+  -->
+<match target="font">
+  <test name="scalable" compare="eq">
+    <bool>false</bool>
+  </test>
+  <test name="pixelsizefixupfactor" compare="not_eq">
+    <double>1.0</double>
+  </test>
+  <edit name="matrix" mode="assign">
+    <times>
+      <name>matrix</name>
+      <matrix>
+        <name>pixelsizefixupfactor</name> <double>0</double>
+        <double>0</double> <name>pixelsizefixupfactor</name>
+       </matrix>
+    </times>
+  </edit>
+  <edit name="size" mode="assign">
+    <divide>
+      <name>size</name>
+      <name>pixelsizefixupfactor</name>
+    </divide>
+  </edit>
+</match>
+
+</fontconfig>
index e1f64fd33bacb5c3ca2a5c1706e762de427f3d33..1378195dd3d9d9ff1fff53bd355d0070b84066c3 100644 (file)
@@ -2,7 +2,13 @@
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>
 <!--  Enable sub-pixel rendering --> 
-  <match target="font">
-    <edit name="rgba" mode="assign"><const>bgr</const></edit>
+  <match target="pattern">
+    <!--
+      This configuration is available on the major desktop environments.
+      We shouldn't overwrite it with "assign" unconditionally.
+      Most clients may picks up the first value only. so using "append"
+      may simply works to avoid it.
+    -->
+    <edit name="rgba" mode="append"><const>bgr</const></edit>
   </match>
 </fontconfig>
index 2b49fe3d245472038ec0dc5386f72199bb16aef1..757c3b6a775de75451189aa3695be46ce5be0dda 100644 (file)
@@ -2,7 +2,13 @@
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>
 <!--  Enable sub-pixel rendering --> 
-  <match target="font">
-    <edit name="rgba" mode="assign"><const>rgb</const></edit>
+  <match target="pattern">
+    <!--
+      This configuration is available on the major desktop environments.
+      We shouldn't overwrite it with "assign" unconditionally.
+      Most clients may picks up the first value only. so using "append"
+      may simply works to avoid it.
+    -->
+    <edit name="rgba" mode="append"><const>rgb</const></edit>
   </match>
 </fontconfig>
index 5947650df101b5fbb77b0adad53ea19d4725bb2d..c807e5c0550603dd36cd1715a3fbca244c457517 100644 (file)
@@ -2,7 +2,13 @@
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>
 <!--  Enable sub-pixel rendering --> 
-  <match target="font">
-    <edit name="rgba" mode="assign"><const>vbgr</const></edit>
+  <match target="pattern">
+    <!--
+      This configuration is available on the major desktop environments.
+      We shouldn't overwrite it with "assign" unconditionally.
+      Most clients may picks up the first value only. so using "append"
+      may simply works to avoid it.
+    -->
+    <edit name="rgba" mode="append"><const>vbgr</const></edit>
   </match>
 </fontconfig>
index 84481bde2d160f1764999419b42b7cd2a2991657..b5985e03c32481809d2c11738387184260622221 100644 (file)
@@ -2,7 +2,13 @@
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>
 <!--  Enable sub-pixel rendering --> 
-  <match target="font">
-    <edit name="rgba" mode="assign"><const>vrgb</const></edit>
+  <match target="pattern">
+    <!--
+      This configuration is available on the major desktop environments.
+      We shouldn't overwrite it with "assign" unconditionally.
+      Most clients may picks up the first value only. so using "append"
+      may simply works to avoid it.
+    -->
+    <edit name="rgba" mode="append"><const>vrgb</const></edit>
   </match>
 </fontconfig>
index 025ae2a82a77f9f6268b2f692c677a49462a4e4b..a25e3b1dc9d8e7481ff056ef8b4ff4bf92f00269 100644 (file)
@@ -2,7 +2,13 @@
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>
 <!--  Disable hinting --> 
-  <match target="font">
-    <edit name="hinting" mode="assign"><bool>false</bool></edit>
+  <match target="pattern">
+    <!--
+      This configuration is available on the major desktop environments.
+      We shouldn't overwrite it with "assign" unconditionally.
+      Most clients may picks up the first value only. so using "append"
+      may simply works to avoid it.
+    -->
+    <edit name="hinting" mode="append"><bool>false</bool></edit>
   </match>
 </fontconfig>
diff --git a/fonts/conf.avail/11-lcdfilter-default.conf b/fonts/conf.avail/11-lcdfilter-default.conf
new file mode 100644 (file)
index 0000000..9d7d11f
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!--  Use lcddefault as default for LCD filter -->
+  <match target="pattern">
+    <!--
+      This configuration is available on the major desktop environments.
+      We shouldn't overwrite it with "assign" unconditionally.
+      Most clients may picks up the first value only. so using "append"
+      may simply works to avoid it.
+    -->
+    <edit mode="append" name="lcdfilter">
+      <const>lcddefault</const>
+    </edit>
+  </match>
+</fontconfig>
diff --git a/fonts/conf.avail/11-lcdfilter-legacy.conf b/fonts/conf.avail/11-lcdfilter-legacy.conf
new file mode 100644 (file)
index 0000000..7e2b256
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!--  Use lcdlegacy as default for LCD filter -->
+  <match target="pattern">
+    <!--
+      This configuration is available on the major desktop environments.
+      We shouldn't overwrite it with "assign" unconditionally.
+      Most clients may picks up the first value only. so using "append"
+      may simply works to avoid it.
+    -->
+    <edit mode="append" name="lcdfilter">
+      <const>lcdlegacy</const>
+    </edit>
+  </match>
+</fontconfig>
diff --git a/fonts/conf.avail/11-lcdfilter-light.conf b/fonts/conf.avail/11-lcdfilter-light.conf
new file mode 100644 (file)
index 0000000..0dd0a90
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!--  Use lcdlight as default for LCD filter -->
+  <match target="pattern">
+    <!--
+      This configuration is available on the major desktop environments.
+      We shouldn't overwrite it with "assign" unconditionally.
+      Most clients may picks up the first value only. so using "append"
+      may simply works to avoid it.
+    -->
+    <edit mode="append" name="lcdfilter">
+      <const>lcdlight</const>
+    </edit>
+  </match>
+</fontconfig>
diff --git a/fonts/conf.avail/20-fix-globaladvance.conf b/fonts/conf.avail/20-fix-globaladvance.conf
deleted file mode 100644 (file)
index 2a9c063..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
-<fontconfig>
-<!--
-  Some Asian fonts misadvertise themselves as monospaced when
-  in fact they are dual-spaced (half and full).  This makes
-  FreeType very confused as it forces all widths to match.
-  Undo this magic by disabling the width forcing code -->
-       <match target="font">
-               <test name="family"><string>GulimChe</string></test>
-               <edit name="globaladvance"><bool>false</bool></edit>
-       </match>
-
-       <match target="font">
-               <test name="family"><string>DotumChe</string></test>
-               <edit name="globaladvance"><bool>false</bool></edit>
-       </match>
-
-       <match target="font">
-               <test name="family"><string>BatangChe</string></test>
-               <edit name="globaladvance"><bool>false</bool></edit>
-       </match>
-
-       <match target="font">
-               <test name="family"><string>GungsuhChe</string></test>
-               <edit name="globaladvance"><bool>false</bool></edit>
-       </match>
-</fontconfig>
index c4ebee9d4492e0062023401ce5339cb0a1d8c168..c9505ca8e46893b1cecae8bed449bae8ebe1fd33 100644 (file)
@@ -10,7 +10,7 @@
  -->
 
        <match target="font">
-               <test name="family">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Bitstream Vera Sans</string>
                </test>
                <test name="pixelsize" compare="less">
@@ -22,7 +22,7 @@
        </match>
 
        <match target="font">
-               <test name="family">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Bitstream Vera Serif</string>
                </test>
                <test name="pixelsize" compare="less">
@@ -34,7 +34,7 @@
        </match>
 
        <match target="font">
-               <test name="family">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Bitstream Vera Sans Mono</string>
                </test>
                <test name="pixelsize" compare="less">
index ffb70c69f61c4952b4a3a6d7889fc13393507ee8..9adffa71a729b5bac53be23c5eb1412c54455538 100644 (file)
@@ -5,7 +5,7 @@
 <!-- We can't hint CJK fonts well, so turn off hinting for CJK fonts. -->
 
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Kochi Mincho</string>
                </test>
                <edit name="hinting" mode="assign">
@@ -13,7 +13,7 @@
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Kochi Gothic</string>
                </test>
                <edit name="hinting" mode="assign">
@@ -21,7 +21,7 @@
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Sazanami Mincho</string>
                </test>
                <edit name="hinting" mode="assign">
@@ -29,7 +29,7 @@
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Sazanami Gothic</string>
                </test>
                <edit name="hinting" mode="assign">
@@ -37,7 +37,7 @@
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Baekmuk Batang</string>
                </test>
                <edit name="hinting" mode="assign">
@@ -45,7 +45,7 @@
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Baekmuk Dotum</string>
                </test>
                <edit name="hinting" mode="assign">
@@ -53,7 +53,7 @@
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Baekmuk Gulim</string>
                </test>
                <edit name="hinting" mode="assign">
@@ -61,7 +61,7 @@
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Baekmuk Headline</string>
                </test>
                <edit name="hinting" mode="assign">
@@ -69,7 +69,7 @@
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>AR PL Mingti2L Big5</string>
                </test>
                <edit name="hinting" mode="assign">
@@ -77,7 +77,7 @@
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>AR PL ShanHeiSun Uni</string>
                </test>
                <edit name="hinting" mode="assign">
@@ -85,7 +85,7 @@
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>AR PL KaitiM Big5</string>
                </test>
                <edit name="hinting" mode="assign">
@@ -93,7 +93,7 @@
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>AR PL ZenKai Uni</string>
                </test>
                <edit name="hinting" mode="assign">
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>AR PL SungtiL GB</string>
                </test>
                <edit name="hinting" mode="assign">
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>AR PL KaitiM GB</string>
                </test>
                <edit name="hinting" mode="assign">
                </edit>
        </match>
        <match target="font">
-               <test name="family" compare="eq">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>ZYSong18030</string>
                </test>
                <edit name="hinting" mode="assign">
index 702a495ea6a4d2a57ae4da84579b0abafe5820af..f25052a299fec09c1377855834273cac3e2c2953 100644 (file)
 
                Microsoft fonts:
                        Arial
+                       Arial Narrow
                        Times New Roman
                        Courier New
                Liberation fonts:
                        Liberation Sans
+                       Liberation Sans Narrow
                        Liberation Serif
                        Liberation Mono
                StarOffice fonts:
                        Albany AMT
                        Thorndale AMT
                        Cumberland AMT
+               Google CrOS Core fonts:
+                       Arimo
+                       Cousine
+                       Tinos
 
             Of these, URW fonts are design compatible with PostScrict fonts,
-            and the Liberation, StarOffice, and AMT ones are compatible with
-            Microsoft fonts.
+            and the Liberation, StarOffice, AMT and CrOS Core ones are
+            compatible with Microsoft fonts.
 
             We want for each of them to fallback to any of these
             available, but in an order preferring similar designs
 
 
        <!-- Microsoft -->
+       <alias binding="same">
+         <family>Arimo</family>
+         <default>
+           <family>Arial</family>
+         </default>
+       </alias>
+
        <alias binding="same">
          <family>Liberation Sans</family>
+         <default>
+         <family>Arial</family>
+         </default>
+       </alias>
+
+       <alias binding="same">
+         <family>Liberation Sans Narrow</family>
+         <default>
+           <family>Arial Narrow</family>
+         </default>
+       </alias>
+
+       <alias binding="same">
          <family>Albany</family>
+         <default>
+         <family>Arial</family>
+         </default>
+       </alias>
+
+       <alias binding="same">
          <family>Albany AMT</family>
          <default>
          <family>Arial</family>
          </default>
        </alias>
 
+       <alias binding="same">
+         <family>Tinos</family>
+         <default>
+           <family>Times New Roman</family>
+         </default>
+       </alias>
+
        <alias binding="same">
          <family>Liberation Serif</family>
+         <default>
+         <family>Times New Roman</family>
+         </default>
+       </alias>
+
+       <alias binding="same">
          <family>Thorndale</family>
+         <default>
+         <family>Times New Roman</family>
+         </default>
+       </alias>
+
+       <alias binding="same">
          <family>Thorndale AMT</family>
          <default>
          <family>Times New Roman</family>
          </default>
        </alias>
 
+       <alias binding="same">
+         <family>Cousine</family>
+         <default>
+           <family>Courier New</family>
+         </default>
+       </alias>
+
        <alias binding="same">
          <family>Liberation Mono</family>
+         <default>
+         <family>Courier New</family>
+         </default>
+       </alias>
+
+       <alias binding="same">
          <family>Cumberland</family>
+         <default>
+         <family>Courier New</family>
+         </default>
+       </alias>
+
+       <alias binding="same">
          <family>Cumberland AMT</family>
          <default>
          <family>Courier New</family>
        <alias binding="same">
          <family>Arial</family>
          <accept>
-         <family>Liberation Sans</family>
-         <family>Albany</family>
-         <family>Albany AMT</family>
+           <family>Arimo</family>
+           <family>Liberation Sans</family>
+           <family>Albany</family>
+           <family>Albany AMT</family>
+         </accept>
+       </alias>
+
+       <alias binding="same">
+         <family>Arial Narrow</family>
+         <accept>
+           <family>Liberation Sans Narrow</family>
          </accept>
        </alias>
 
        <alias binding="same">
          <family>Times New Roman</family>
          <accept>
-         <family>Liberation Serif</family>
-         <family>Thorndale</family>
-         <family>Thorndale AMT</family>
+           <family>Tinos</family>
+           <family>Liberation Serif</family>
+           <family>Thorndale</family>
+           <family>Thorndale AMT</family>
          </accept>
        </alias>
 
        <alias binding="same">
          <family>Courier New</family>
          <accept>
-         <family>Liberation Mono</family>
-         <family>Cumberland</family>
-         <family>Cumberland AMT</family>
+           <family>Cousine</family>
+           <family>Liberation Mono</family>
+           <family>Cumberland</family>
+           <family>Cumberland AMT</family>
          </accept>
        </alias>
 
index 8d2b04b9e161ea2be592d0703b27635e12e47fb8..aae06acd68804e2ea3b2744bfa1849bb9e9bac92 100644 (file)
          <family>Zapf Dingbats</family>
          <accept><family>Dingbats</family></accept>
        </alias>
-       <alias binding="same">
-         <family>ZapfDingbats</family>
-         <accept><family>Dingbats</family></accept>
-       </alias>
        <match target="pattern">
-         <test name="family">
+         <test name="family" compare="eq" ignore-blanks="true">
            <string>Symbol</string>
          </test>
          <edit name="family" mode="append" binding="same">
index a875db08c3d1697712ba12c41942141322e72fdc..c900fd4e7f9a110afaca195050834350e83c4c5e 100644 (file)
  -->
        <alias>
                <family>Nazli</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Lotoos</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Mitra</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Ferdosi</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Badr</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Zar</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Titr</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Jadid</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Kochi Mincho</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>AR PL SungtiL GB</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>AR PL Mingti2L Big5</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>MS 明朝</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
+               <family>NanumMyeongjo</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>UnBatang</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Baekmuk Batang</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>MgOpen Canonica</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Sazanami Mincho</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>AR PL ZenKai Uni</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>ZYSong18030</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>FreeSerif</family>
                <default><family>serif</family></default>
        </alias>
+       <alias>
+               <family>SimSun</family>
+               <default><family>serif</family></default>
+       </alias>
 <!--
   Sans-serif faces
  -->
        <alias>
                <family>Arshia</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Elham</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Farnaz</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Nasim</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Sina</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Roya</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Koodak</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Terafik</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Kochi Gothic</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>AR PL KaitiM GB</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>AR PL KaitiM Big5</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>MS ゴシック</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
+               <family>NanumGothic</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>UnDotum</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Baekmuk Dotum</family>
-               <family>SimSun</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>MgOpen Modata</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Sazanami Gothic</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>AR PL ShanHeiSun Uni</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>ZYSong18030</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>FreeSans</family>
                <default><family>sans-serif</family></default>
        </alias>
 <!--
   Monospace faces
  -->
-       <alias>
+       <alias>
                <family>NSimSun</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
                <family>ZYSong18030</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
+               <family>NanumGothicCoding</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
                <family>FreeMono</family>
                <default><family>monospace</family></default>
        </alias>
  -->
        <alias>
                <family>Homa</family>
+               <default><family>fantasy</family></default>
+       </alias>
+       <alias>
                <family>Kamran</family>
+               <default><family>fantasy</family></default>
+       </alias>
+       <alias>
                <family>Fantezi</family>
+               <default><family>fantasy</family></default>
+       </alias>
+       <alias>
                <family>Tabassom</family>
                <default><family>fantasy</family></default>
        </alias>
  -->
        <alias>
                <family>IranNastaliq</family>
+               <default><family>cursive</family></default>
+       </alias>
+       <alias>
                <family>Nafees Nastaleeq</family>
                <default><family>cursive</family></default>
        </alias>
index 7e4126468818f9f7143b3c8698a1bc9be431005f..09fd526524945987902d17c1870cea5188f71e6a 100644 (file)
  -->
        <alias>
                <family>Bitstream Vera Serif</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>DejaVu Serif</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Liberation Serif</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Times New Roman</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Times</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Nimbus Roman No9 L</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Luxi Serif</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Thorndale AMT</family>
+               <default><family>serif</family></default>
+       </alias>
+       <alias>
                <family>Thorndale</family>
                <default><family>serif</family></default>
        </alias>
  -->
        <alias>
                <family>Bitstream Vera Sans</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>DejaVu Sans</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Liberation Sans</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Arial</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Helvetica</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Verdana</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Albany AMT</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Albany</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Nimbus Sans L</family>
+               <default><family>sans-serif</family></default>
+       </alias>
+       <alias>
                <family>Luxi Sans</family>
                <default><family>sans-serif</family></default>
        </alias>
  -->
        <alias>
                <family>Bitstream Vera Sans Mono</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
                <family>DejaVu Sans Mono</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
                <family>Liberation Mono</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
                <family>Inconsolata</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
                <family>Courier New</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
                <family>Courier</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
                <family>Andale Mono</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
                <family>Luxi Mono</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
                <family>Cumberland AMT</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
                <family>Cumberland</family>
+               <default><family>monospace</family></default>
+       </alias>
+       <alias>
                <family>Nimbus Mono L</family>
                <default><family>monospace</family></default>
        </alias>
  -->
        <alias>
                <family>Impact</family>
+               <default><family>fantasy</family></default>
+       </alias>
+       <alias>
                <family>Copperplate Gothic Std</family>
+               <default><family>fantasy</family></default>
+       </alias>
+       <alias>
                <family>Cooper Std</family>
+               <default><family>fantasy</family></default>
+       </alias>
+       <alias>
                <family>Bauhaus Std</family>
                <default><family>fantasy</family></default>
        </alias>
   -->
        <alias>
                <family>ITC Zapf Chancery Std</family>
+               <default><family>cursive</family></default>
+       </alias>
+       <alias>
                <family>Zapfino</family>
+               <default><family>cursive</family></default>
+       </alias>
+       <alias>
                <family>Comic Sans MS</family>
                <default><family>cursive</family></default>
        </alias>
index 3f8901296bc24e5271385b15997a956a2c4d9629..07c9182e788c244f561138134948046907f9510b 100644 (file)
@@ -1,7 +1,15 @@
 <?xml version="1.0"?>
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>
-       <!-- Load per-user customization file -->
-       <include ignore_missing="yes">~/.fonts.conf.d</include>
-       <include ignore_missing="yes">~/.fonts.conf</include>
+       <!--
+           Load per-user customization files where stored on XDG Base Directory
+           specification compliant places. it should be usually:
+             $HOME/.config/fontconfig/conf.d
+             $HOME/.config/fontconfig/fonts.conf
+       -->
+       <include ignore_missing="yes" prefix="xdg">fontconfig/conf.d</include>
+       <include ignore_missing="yes" prefix="xdg">fontconfig/fonts.conf</include>
+       <!-- the following elements will be removed in the future -->
+       <include ignore_missing="yes" deprecated="yes">~/.fonts.conf.d</include>
+       <include ignore_missing="yes" deprecated="yes">~/.fonts.conf</include>
 </fontconfig>
index 0033675a493fb745644b09e4a90ca3f37c806d9b..ea00661208a1831aae067603879543b1f55dc1cb 100644 (file)
 <!-- Register the fonts that we actually do have -->
 
        <match target="scan">
-               <test name="family">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Elham</string>
                </test>
                <edit name="foundry">
        </match>
 
        <match target="scan">
-               <test name="family">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Homa</string>
                </test>
                <edit name="foundry">
        </match>
 
        <match target="scan">
-               <test name="family">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Koodak</string>
                </test>
                <edit name="foundry">
        </match>
 
        <match target="scan">
-               <test name="family">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Nazli</string>
                </test>
                <edit name="foundry">
        </match>
 
        <match target="scan">
-               <test name="family">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Roya</string>
                </test>
                <edit name="foundry">
        </match>
 
        <match target="scan">
-               <test name="family">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Terafik</string>
                </test>
                <edit name="foundry">
        </match>
 
        <match target="scan">
-               <test name="family">
+               <test name="family" compare="eq" ignore-blanks="true">
                        <string>Titr</string>
                </test>
                <edit name="foundry">
index 53ac064b0a7f0aab8e9787cac02165e740f6f77f..9306f74922ff79e4797dfa57afc9ab4f7214f1cb 100644 (file)
@@ -23,8 +23,7 @@
                        <family>Sampige</family> <!-- kannada -->
                        <family>padmaa</family> <!-- gujarati -->
                        <family>Hapax Berbère</family> <!-- tifinagh -->
-                       <family>MS Gothic</family> <!-- han (ja) -->
-                       <family>UmePlus P Gothic</family> <!-- han (ja) -->
+                       <family>MS Mincho</family> <!-- han (ja) -->
                        <family>SimSun</family> <!-- han (zh-cn,zh-tw) -->
                        <family>PMingLiu</family> <!-- han (zh-tw) -->
                        <family>WenQuanYi Zen Hei</family> <!-- han (zh-cn,zh-tw) -->
@@ -43,8 +42,9 @@
                        <family>AR PL Zenkai Uni</family>
                        <family>MS 明朝</family>
                        <family>ZYSong18030</family>
-                       <family>UnBatang</family>
-                       <family>Baekmuk Batang</family>
+                       <family>NanumMyeongjo</family> <!-- hangul (ko) -->
+                       <family>UnBatang</family> <!-- hangul (ko) -->
+                       <family>Baekmuk Batang</family> <!-- hangul (ko) -->
                        <family>KacstQura</family>
                        <family>Frank Ruehl CLM</family>
                        <family>Lohit Bengali</family>
                        <family>MS ゴシック</family>
                        <family>ZYSong18030</family> <!-- han (zh-cn,zh-tw) -->
                        <family>TSCu_Paranar</family> <!-- tamil -->
-                       <family>UnDotum</family>
-                       <family>Baekmuk Dotum</family>
-                       <family>Baekmuk Gulim</family>
+                       <family>NanumGothic</family> <!-- hangul (ko) -->
+                       <family>UnDotum</family> <!-- hangul (ko) -->
+                       <family>Baekmuk Dotum</family> <!-- hangul (ko) -->
+                       <family>Baekmuk Gulim</family> <!-- hangul (ko) -->
                        <family>KacstQura</family>
                        <family>Lohit Bengali</family>
                        <family>Lohit Gujarati</family>
                        <family>AR PL SungtiL GB</family>
                        <family>AR PL Mingti2L Big5</family>
                        <family>ZYSong18030</family> <!-- han (zh-cn,zh-tw) -->
-                       <family>UnBatang</family>
-                       <family>UnDotum</family>
-                       <family>Baekmuk Batang</family> <!-- hangul -->
-                       <family>Baekmuk Dotum</family>
-                       <family>Baekmuk Gulim</family>
+                       <family>NanumGothicCoding</family> <!-- hangul (ko) -->
+                       <family>NanumGothic</family> <!-- hangul (ko) -->
+                       <family>UnDotum</family> <!-- hangul (ko) -->
+                       <family>Baekmuk Dotum</family> <!-- hangul (ko) -->
+                       <family>Baekmuk Gulim</family> <!-- hangul (ko) -->
                        <family>TlwgTypo</family> <!-- thai -->
                        <family>TlwgTypist</family> <!-- thai -->
                        <family>TlwgTypewriter</family> <!-- thai -->
index 728f50caee1261e746f54cded481b392a94eac37..845647bed44a105c4fc79455c1fbc1ec4bca667a 100644 (file)
@@ -5,7 +5,7 @@
 
 <!-- Delicious 'heavy' variant says its Medium weight -->
 <match target="scan">
-       <test name="family">
+       <test name="family" compare="eq" ignore-blanks="true">
                <string>Delicious</string>
        </test>
        <test name="style">
diff --git a/fonts/conf.d/10-scale-bitmap-fonts.conf b/fonts/conf.d/10-scale-bitmap-fonts.conf
new file mode 120000 (symlink)
index 0000000..56049bc
--- /dev/null
@@ -0,0 +1 @@
+/etc/fonts/conf.avail/10-scale-bitmap-fonts.conf
\ No newline at end of file
diff --git a/fonts/conf.d/20-fix-globaladvance.conf b/fonts/conf.d/20-fix-globaladvance.conf
deleted file mode 120000 (symlink)
index 8fec131..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../conf.avail/20-fix-globaladvance.conf
\ No newline at end of file
index 059259a5c88311b4753fc98a92888b3621ddec08..e2d5567fc3f1e1af981b28285cad6d7fa1cc084d 100644 (file)
@@ -25,6 +25,8 @@
 
        <dir>/usr/share/fonts</dir>
        <dir>/usr/local/share/fonts</dir>
+       <dir prefix="xdg">fonts</dir>
+       <!-- the following element will be removed in the future -->
        <dir>~/.fonts</dir>
 
 <!--
@@ -34,7 +36,7 @@
                <test qual="any" name="family">
                        <string>mono</string>
                </test>
-               <edit name="family" mode="assign">
+               <edit name="family" mode="assign" binding="same">
                        <string>monospace</string>
                </edit>
        </match>
@@ -46,7 +48,7 @@
                <test qual="any" name="family">
                        <string>sans serif</string>
                </test>
-               <edit name="family" mode="assign">
+               <edit name="family" mode="assign" binding="same">
                        <string>sans-serif</string>
                </edit>
        </match>
@@ -58,7 +60,7 @@
                <test qual="any" name="family">
                        <string>sans</string>
                </test>
-               <edit name="family" mode="assign">
+               <edit name="family" mode="assign" binding="same">
                        <string>sans-serif</string>
                </edit>
        </match>
 <!--
   Load local system customization file
 -->
-       <include ignore_missing="yes">conf.d</include>
+       <include ignore_missing="yes">/etc/fonts/conf.d</include>
 
 <!-- Font cache directory list -->
 
        <cachedir>/var/cache/fontconfig</cachedir>
+       <cachedir prefix="xdg">fontconfig</cachedir>
+       <!-- the following element will be removed in the future -->
        <cachedir>~/.fontconfig</cachedir>
 
        <config>
diff --git a/fonts/fonts.dtd b/fonts/fonts.dtd
deleted file mode 100644 (file)
index cbdfdab..0000000
+++ /dev/null
@@ -1,224 +0,0 @@
-<!-- This is the Document Type Definition for font configuration files -->
-<!ELEMENT fontconfig (dir | 
-                     cache | 
-                     cachedir |
-                     include | 
-                     config |
-                     selectfont |
-                     match | 
-                     alias)* >
-
-<!-- 
-    Add a directory that provides fonts
--->
-<!ELEMENT dir (#PCDATA)>
-<!ATTLIST dir xml:space (default|preserve) 'preserve'>
-
-<!--
-    Define the per-user file that holds cache font information.
-
-    If the filename begins with '~', it is replaced with the users
-    home directory path.
--->
-<!ELEMENT cache (#PCDATA)>
-<!ATTLIST cache xml:space (default|preserve) 'preserve'>
-
-<!--
-    Add a directory that is searched for font cache files.
-    These hold per-directory cache data and are searched in
-    order for each directory. When writing cache files, the first
-    directory which allows the cache file to be created is used.
-
-    A leading '~' in a directory name is replaced with the users
-    home directory path.
--->
-<!ELEMENT cachedir (#PCDATA)>
-<!ATTLIST cachedir xml:space (default|preserve) 'preserve'>
-
-<!--
-    Reference another configuration file; note that this
-    is another complete font configuration file and not
-    just a file included by the XML parser.
-
-    Set 'ignore_missing' to 'yes' if errors are to be ignored.
-
-    If the filename begins with '~', it is replaced with the users
-    home directory path.
--->
-<!ELEMENT include (#PCDATA)>
-<!ATTLIST include
-         ignore_missing    (no|yes)            "no"
-         xml:space         (default|preserve)  "preserve">
-
-<!--
-    Global library configuration data
- -->
-<!ELEMENT config (blank|rescan)*>
-
-<!--
-    Specify the set of Unicode encoding values which
-    represent glyphs that are allowed to contain no
-    data.  With this list, fontconfig can examine
-    fonts for broken glyphs and eliminate them from
-    the set of valid Unicode chars.  This idea
-    was borrowed from Mozilla
- -->
-<!ELEMENT blank (int)*>
-
-<!--
-    Aliases are just a special case for multiple match elements
-
-    They are syntactically equivalent to:
-
-    <match>
-       <test name="family">
-           <string value=[family]/>
-       </test>
-       <edit name="family" mode="prepend">
-           <string value=[prefer]/>
-           ...
-       </edit>
-       <edit name="family" mode="append">
-           <string value=[accept]/>
-           ...
-       </edit>
-       <edit name="family" mode="append_last">
-           <string value=[default]/>
-           ...
-       </edit>
-    </match>
--->
-<!--
-    Periodically rescan the font configuration and
-    directories to synch internal state with filesystem
- -->
-<!ELEMENT rescan (int)>
-
-<!--
-    Edit list of available fonts at startup/reload time
- -->
-<!ELEMENT selectfont (rejectfont | acceptfont)* >
-
-<!ELEMENT rejectfont (glob | pattern)*>
-
-<!ELEMENT acceptfont (glob | pattern)*>
-
-<!ELEMENT glob (#PCDATA)>
-
-<!ELEMENT pattern (patelt)*>
-
-<!ENTITY % constant 'int|double|string|matrix|bool|charset|const'>
-
-<!ELEMENT patelt (%constant;)*>
-<!ATTLIST patelt
-         name CDATA    #REQUIRED>
-
-<!ELEMENT alias (family*, prefer?, accept?, default?)>
-<!ATTLIST alias
-         binding (weak|strong|same) "weak">
-<!ELEMENT prefer (family)*>
-<!ELEMENT accept (family)*>
-<!ELEMENT default (family)*>
-<!ELEMENT family (#PCDATA)>
-<!ATTLIST family xml:space (default|preserve) 'preserve'>
-
-<!ENTITY % expr 'int|double|string|matrix|bool|charset
-               |name|const
-               |or|and|eq|not_eq|less|less_eq|more|more_eq|contains|not_contains
-               |plus|minus|times|divide|not|if|floor|ceil|round|trunc'>
-
-<!--
-    Match and edit patterns.
-
-    If 'target' is 'pattern', execute the match before selecting a font.
-    if 'target' is 'font', execute the match on the result of a font
-    selection.
--->
-<!ELEMENT match (test*, edit*)>
-<!ATTLIST match
-         target (pattern|font|scan) "pattern">
-
-<!--
-    Match a field in a pattern
-
-    if 'qual' is 'any', then the match succeeds if any value in the field matches.
-    if 'qual' is 'all', then the match succeeds only if all values match.
-    if 'qual' is 'first', then the match succeeds only if the first value matches.
-    if 'qual' is 'not_first', then the match succeeds only if any value other than
-       the first matches.
-    For match elements with target=font, if test 'target' is 'pattern',
-    then the test is applied to the pattern used in matching rather than
-    to the resulting font.
-
-    Match elements with target=scan are applied as fonts are scanned.
-    They edit the pattern generated from the scanned font and affect
-    what the fontconfig database contains.
--->
-<!ELEMENT test (%expr;)*>
-<!ATTLIST test 
-         qual (any|all|first|not_first)    "any"
-         name CDATA        #REQUIRED
-         target (pattern|font|default)         "default"
-         compare (eq|not_eq|less|less_eq|more|more_eq|contains|not_contains)   "eq">
-
-<!--
-    Edit a field in a pattern
-
-    The enclosed values are used together to edit the list of values
-    associated with 'name'.
-
-    If 'name' matches one of those used in a test element for this match element:
-       if 'mode' is 'assign', replace the matched value.
-       if 'mode' is 'assign_replace', replace all of the values
-       if 'mode' is 'prepend', insert before the matched value
-       if 'mode' is 'append', insert after the matched value
-       if 'mode' is 'prepend_first', insert before all of the values
-       if 'mode' is 'append_last', insert after all of the values
-    If 'name' doesn't match any of those used in a test element:
-       if 'mode' is 'assign' or 'assign_replace, replace all of the values
-       if 'mode' is 'prepend' or 'prepend_first', insert before all of the values
-       if 'mode' is 'append' or 'append_last', insert after all of the values
--->
-<!ELEMENT edit (%expr;)*>
-<!ATTLIST edit
-         name CDATA        #REQUIRED
-         mode (assign|assign_replace|prepend|append|prepend_first|append_last) "assign"
-         binding (weak|strong|same) "weak">
-
-<!--
-    Elements of expressions follow
--->
-<!ELEMENT int (#PCDATA)>
-<!ATTLIST int xml:space (default|preserve) 'preserve'>
-<!ELEMENT double (#PCDATA)>
-<!ATTLIST double xml:space (default|preserve) 'preserve'>
-<!ELEMENT string (#PCDATA)>
-<!ATTLIST string xml:space (default|preserve) 'preserve'>
-<!ELEMENT matrix (double,double,double,double)>
-<!ELEMENT bool (#PCDATA)>
-<!ELEMENT charset (#PCDATA)>
-<!ATTLIST charset xml:space (default|preserve) 'preserve'>
-<!ELEMENT name (#PCDATA)>
-<!ATTLIST name xml:space (default|preserve) 'preserve'>
-<!ELEMENT const (#PCDATA)>
-<!ATTLIST const xml:space (default|preserve) 'preserve'>
-<!ELEMENT or (%expr;)*>
-<!ELEMENT and (%expr;)*>
-<!ELEMENT eq ((%expr;), (%expr;))>
-<!ELEMENT not_eq ((%expr;), (%expr;))>
-<!ELEMENT less ((%expr;), (%expr;))>
-<!ELEMENT less_eq ((%expr;), (%expr;))>
-<!ELEMENT more ((%expr;), (%expr;))>
-<!ELEMENT more_eq ((%expr;), (%expr;))>
-<!ELEMENT contains ((%expr;), (%expr;))>
-<!ELEMENT not_contains ((%expr;), (%expr;))>
-<!ELEMENT plus (%expr;)*>
-<!ELEMENT minus (%expr;)*>
-<!ELEMENT times (%expr;)*>
-<!ELEMENT divide (%expr;)*>
-<!ELEMENT not (%expr;)>
-<!ELEMENT if ((%expr;), (%expr;), (%expr;))>
-<!ELEMENT floor (%expr;)>
-<!ELEMENT ceil (%expr;)>
-<!ELEMENT round (%expr;)>
-<!ELEMENT trunc (%expr;)>
diff --git a/grub.d/00_header b/grub.d/00_header
new file mode 100755 (executable)
index 0000000..3c6370d
--- /dev/null
@@ -0,0 +1,328 @@
+#! /bin/sh
+set -e
+
+# grub-mkconfig helper script.
+# Copyright (C) 2006,2007,2008,2009,2010  Free Software Foundation, Inc.
+#
+# GRUB is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# GRUB is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
+
+prefix="/usr"
+exec_prefix="${prefix}"
+datarootdir="${prefix}/share"
+grub_lang=`echo $LANG | cut -d . -f 1`
+
+export TEXTDOMAIN=grub
+export TEXTDOMAINDIR="${datarootdir}/locale"
+
+. "/usr/share/grub/grub-mkconfig_lib"
+
+# Do this as early as possible, since other commands might depend on it.
+# (e.g. the `loadfont' command might need lvm or raid modules)
+for i in ${GRUB_PRELOAD_MODULES} ; do
+  echo "insmod $i"
+done
+
+if [ "x${GRUB_DEFAULT}" = "x" ] ; then GRUB_DEFAULT=0 ; fi
+if [ "x${GRUB_DEFAULT}" = "xsaved" ] ; then GRUB_DEFAULT='${saved_entry}' ; fi
+if [ "x${GRUB_TIMEOUT}" = "x" ] ; then GRUB_TIMEOUT=5 ; fi
+if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=auto ; fi
+
+if [ "x${GRUB_DEFAULT_BUTTON}" = "x" ] ; then GRUB_DEFAULT_BUTTON="$GRUB_DEFAULT" ; fi
+if [ "x${GRUB_DEFAULT_BUTTON}" = "xsaved" ] ; then GRUB_DEFAULT_BUTTON='${saved_entry}' ; fi
+if [ "x${GRUB_TIMEOUT_BUTTON}" = "x" ] ; then GRUB_TIMEOUT_BUTTON="$GRUB_TIMEOUT" ; fi
+
+cat << EOF
+if [ -s \$prefix/grubenv ]; then
+  load_env
+fi
+EOF
+if [ "x$GRUB_BUTTON_CMOS_ADDRESS" != "x" ]; then
+    cat <<EOF
+if cmostest $GRUB_BUTTON_CMOS_ADDRESS ; then
+   set default="${GRUB_DEFAULT_BUTTON}"
+elif [ "\${next_entry}" ] ; then
+   set default="\${next_entry}"
+   set next_entry=
+   save_env next_entry
+   set boot_once=true
+else
+   set default="${GRUB_DEFAULT}"
+fi
+EOF
+else
+    cat <<EOF
+if [ "\${next_entry}" ] ; then
+   set default="\${next_entry}"
+   set next_entry=
+   save_env next_entry
+   set boot_once=true
+else
+   set default="${GRUB_DEFAULT}"
+fi
+EOF
+fi
+cat <<EOF
+
+if [ x"\${feature_menuentry_id}" = xy ]; then
+  menuentry_id_option="--id"
+else
+  menuentry_id_option=""
+fi
+
+export menuentry_id_option
+
+if [ "\${prev_saved_entry}" ]; then
+  set saved_entry="\${prev_saved_entry}"
+  save_env saved_entry
+  set prev_saved_entry=
+  save_env prev_saved_entry
+  set boot_once=true
+fi
+
+function savedefault {
+  if [ -z "\${boot_once}" ]; then
+    saved_entry="\${chosen}"
+    save_env saved_entry
+  fi
+}
+
+function load_video {
+EOF
+if [ -n "${GRUB_VIDEO_BACKEND}" ]; then
+    cat <<EOF
+  insmod ${GRUB_VIDEO_BACKEND}
+EOF
+else
+# If all_video.mod isn't available load all modules available
+# with versions prior to introduction of all_video.mod
+cat <<EOF
+  if [ x\$feature_all_video_module = xy ]; then
+    insmod all_video
+  else
+    insmod efi_gop
+    insmod efi_uga
+    insmod ieee1275_fb
+    insmod vbe
+    insmod vga
+    insmod video_bochs
+    insmod video_cirrus
+  fi
+EOF
+fi
+cat <<EOF
+}
+
+EOF
+
+serial=0;
+gfxterm=0;
+for x in ${GRUB_TERMINAL_INPUT} ${GRUB_TERMINAL_OUTPUT}; do
+    if [ xserial = "x$x" ]; then
+       serial=1;
+    fi
+    if [ xgfxterm = "x$x" ]; then
+       gfxterm=1;
+    fi
+done
+
+if [ "x$serial" = x1 ]; then
+    if [ "x${GRUB_SERIAL_COMMAND}" = "x" ] ; then
+       grub_warn "$(gettext "Requested serial terminal but GRUB_SERIAL_COMMAND is unspecified. Default parameters will be used.")"
+       GRUB_SERIAL_COMMAND=serial
+    fi
+    echo "${GRUB_SERIAL_COMMAND}"
+fi
+
+if [ "x$gfxterm" = x1 ]; then
+    if [ -n "$GRUB_FONT" ] ; then
+       # Make the font accessible
+       prepare_grub_to_access_device `${grub_probe} --target=device "${GRUB_FONT}"`
+    cat << EOF
+if loadfont `make_system_path_relative_to_its_root "${GRUB_FONT}"` ; then
+EOF
+    else
+       for dir in "${pkgdatadir}" "`echo '/boot/grub' | sed "s,//*,/,g"`" /usr/share/grub ; do
+           for basename in unicode unifont ascii; do
+               path="${dir}/${basename}.pf2"
+               if is_path_readable_by_grub "${path}" > /dev/null ; then
+                   font_path="${path}"
+               else
+                   continue
+               fi
+               break 2
+           done
+       done
+       if [ -n "${font_path}" ] ; then
+    cat << EOF
+if [ x\$feature_default_font_path = xy ] ; then
+   font=unicode
+else
+EOF
+                # Make the font accessible
+               prepare_grub_to_access_device `${grub_probe} --target=device "${font_path}"`
+    cat << EOF
+    font="`make_system_path_relative_to_its_root "${font_path}"`"
+fi
+
+if loadfont \$font ; then
+EOF
+           else
+    cat << EOF
+if loadfont unicode ; then
+EOF
+           fi
+       fi
+
+    cat << EOF
+  set gfxmode=${GRUB_GFXMODE}
+  load_video
+  insmod gfxterm
+EOF
+
+# Gettext variables and module
+if [ "x${LANG}" != "xC" ] ; then
+  cat << EOF
+  set locale_dir=\$prefix/locale
+  set lang=${grub_lang}
+  insmod gettext
+EOF
+fi
+
+cat <<EOF
+fi
+EOF
+fi
+
+case x${GRUB_TERMINAL_INPUT} in
+  x)
+    # Just use the native terminal
+  ;;
+  x*)
+    cat << EOF
+terminal_input ${GRUB_TERMINAL_INPUT}
+EOF
+  ;;
+esac
+
+case x${GRUB_TERMINAL_OUTPUT} in
+  x)
+    # Just use the native terminal
+  ;;
+  x*)
+    cat << EOF
+terminal_output ${GRUB_TERMINAL_OUTPUT}
+EOF
+  ;;
+esac
+
+if [ "x$gfxterm" = x1 ]; then
+    if [ "x$GRUB_THEME" != x ] && [ -f "$GRUB_THEME" ] \
+       && is_path_readable_by_grub "$GRUB_THEME"; then
+       gettext_printf "Found theme: %s\n" "$GRUB_THEME" >&2
+
+       prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_THEME"`
+       cat << EOF
+insmod gfxmenu
+EOF
+       themedir="`dirname "$GRUB_THEME"`"
+       for x in "$themedir"/*.pf2 "$themedir"/f/*.pf2; do
+           if [ -f "$x" ]; then
+               cat << EOF
+loadfont (\$root)`make_system_path_relative_to_its_root $x`
+EOF
+           fi
+       done
+       if [ x"`echo "$themedir"/*.jpg`" != x"$themedir/*.jpg" ] || [ x"`echo "$themedir"/*.jpeg`" != x"$themedir/*.jpeg" ]; then
+           cat << EOF
+insmod jpeg
+EOF
+       fi
+       if [ x"`echo "$themedir"/*.png`" != x"$themedir/*.png" ]; then
+           cat << EOF
+insmod png
+EOF
+       fi
+       if [ x"`echo "$themedir"/*.tga`" != x"$themedir/*.tga" ]; then
+           cat << EOF
+insmod tga
+EOF
+       fi
+           
+       cat << EOF
+set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
+export theme
+EOF
+    elif [ "x$GRUB_BACKGROUND" != x ] && [ -f "$GRUB_BACKGROUND" ] \
+           && is_path_readable_by_grub "$GRUB_BACKGROUND"; then
+       gettext_printf "Found background: %s\n" "$GRUB_BACKGROUND" >&2
+       case "$GRUB_BACKGROUND" in 
+           *.png)         reader=png ;;
+           *.tga)         reader=tga ;;
+           *.jpg|*.jpeg)  reader=jpeg ;;
+           *)             gettext "Unsupported image format" >&2; echo >&2; exit 1 ;;
+       esac
+       prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_BACKGROUND"`
+       cat << EOF
+insmod $reader
+background_image -m stretch `make_system_path_relative_to_its_root "$GRUB_BACKGROUND"`
+EOF
+    fi
+fi
+
+make_timeout ()
+{
+    if [ "x${1}" != "x" ] ; then
+       if [ "x${GRUB_HIDDEN_TIMEOUT_QUIET}" = "xtrue" ] ; then
+           verbose=
+       else
+           verbose=" --verbose"
+       fi
+       cat << EOF
+if sleep$verbose --interruptible ${1} ; then
+  set timeout=${2}
+fi
+EOF
+    else
+       cat << EOF
+set timeout=${2}
+EOF
+    fi
+}
+
+if [ "x$GRUB_BUTTON_CMOS_ADDRESS" != "x" ]; then
+    cat <<EOF
+if cmostest $GRUB_BUTTON_CMOS_ADDRESS ; then
+EOF
+make_timeout "${GRUB_HIDDEN_TIMEOUT_BUTTON}" "${GRUB_TIMEOUT_BUTTON}"
+echo else
+make_timeout "${GRUB_HIDDEN_TIMEOUT}" "${GRUB_TIMEOUT}"
+echo fi
+else
+make_timeout "${GRUB_HIDDEN_TIMEOUT}" "${GRUB_TIMEOUT}"
+fi
+
+if [ "x$GRUB_BUTTON_CMOS_ADDRESS" != "x" ] && [ "x$GRUB_BUTTON_CMOS_CLEAN" = "xyes" ]; then
+    cat <<EOF
+cmosclean $GRUB_BUTTON_CMOS_ADDRESS
+EOF
+fi
+
+# Play an initial tune
+if [ "x${GRUB_INIT_TUNE}" != "x" ] ; then
+  echo "play ${GRUB_INIT_TUNE}"
+fi
+
+if [ "x${GRUB_BADRAM}" != "x" ] ; then
+  echo "badram ${GRUB_BADRAM}"
+fi
diff --git a/grub.d/10_linux b/grub.d/10_linux
new file mode 100755 (executable)
index 0000000..720a878
--- /dev/null
@@ -0,0 +1,259 @@
+#! /bin/sh
+set -e
+
+# grub-mkconfig helper script.
+# Copyright (C) 2006,2007,2008,2009,2010  Free Software Foundation, Inc.
+#
+# GRUB is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# GRUB is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
+
+prefix="/usr"
+exec_prefix="${prefix}"
+datarootdir="${prefix}/share"
+
+. "/usr/share/grub/grub-mkconfig_lib"
+
+export TEXTDOMAIN=grub
+export TEXTDOMAINDIR="${datarootdir}/locale"
+
+CLASS="--class gnu-linux --class gnu --class os"
+
+if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
+  OS=GNU/Linux
+else
+  OS="${GRUB_DISTRIBUTOR} GNU/Linux"
+  CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
+fi
+
+# loop-AES arranges things so that /dev/loop/X can be our root device, but
+# the initrds that Linux uses don't like that.
+case ${GRUB_DEVICE} in
+  /dev/loop/*|/dev/loop[0-9])
+    GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
+  ;;
+esac
+
+if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
+    || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
+    || uses_abstraction "${GRUB_DEVICE}" lvm; then
+  LINUX_ROOT_DEVICE=${GRUB_DEVICE}
+else
+  LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
+fi
+
+GRUBFS="`${grub_probe} --device ${GRUB_DEVICE} --target=fs 2>/dev/null || true`"
+
+if [ x"$GRUBFS" = x ]; then
+    GRUBFS="$(stat -f --printf=%T / || true)"
+fi
+
+case x"$GRUBFS" in
+    xbtrfs)
+       rootsubvol="`make_system_path_relative_to_its_root /`"
+       rootsubvol="${rootsubvol#/}"
+       if [ "x${rootsubvol}" != x ]; then
+           GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}"
+       fi;;
+    xzfs)
+       rpool=`${grub_probe} --device ${GRUB_DEVICE} --target=fs_label 2>/dev/null || true`
+       bootfs="`make_system_path_relative_to_its_root / | sed -e "s,@$,,"`"
+       LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs}"
+       ;;
+esac
+
+title_correction_code=
+
+linux_entry ()
+{
+  os="$1"
+  version="$2"
+  type="$3"
+  args="$4"
+
+  if [ -z "$boot_device_id" ]; then
+      boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
+  fi
+  if [ x$type != xsimple ] ; then
+      case $type in
+         recovery)
+             title="$(gettext_printf "%s, with Linux %s (recovery mode)" "${os}" "${version}")" ;;
+         *)
+             title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;;
+      esac
+      if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
+         replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
+         quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
+         title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
+         grub_warn "$(gettext_printf "Please don't use old title \`%s' for GRUB_DEFAULT, use \`%s' (for versions before 2.00) or \`%s' (for 2.00 or later)" "$GRUB_ACTUAL_DEFAULT" "$replacement_title" "gnulinux-advanced-$boot_device_id>gnulinux-$version-$type-$boot_device_id")"
+      fi
+      echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-$version-$type-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
+  else
+      echo "menuentry '$(echo "$os" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
+  fi      
+  if [ x$type != xrecovery ] ; then
+      save_default_entry | grub_add_tab
+  fi
+
+  # Use ELILO's generic "efifb" when it's known to be available.
+  # FIXME: We need an interface to select vesafb in case efifb can't be used.
+  if [ "x$GRUB_GFXPAYLOAD_LINUX" = x ]; then
+      echo "   load_video" | sed "s/^/$submenu_indentation/"
+      if grep -qx "CONFIG_FB_EFI=y" "${config}" 2> /dev/null \
+         && grep -qx "CONFIG_VT_HW_CONSOLE_BINDING=y" "${config}" 2> /dev/null; then
+         echo "        set gfxpayload=keep" | sed "s/^/$submenu_indentation/"
+      fi
+  else
+      if [ "x$GRUB_GFXPAYLOAD_LINUX" != xtext ]; then
+         echo "        load_video" | sed "s/^/$submenu_indentation/"
+      fi
+      echo "   set gfxpayload=$GRUB_GFXPAYLOAD_LINUX" | sed "s/^/$submenu_indentation/"
+  fi
+
+  echo "       insmod gzio" | sed "s/^/$submenu_indentation/"
+
+  if [ x$dirname = x/ ]; then
+    if [ -z "${prepare_root_cache}" ]; then
+      prepare_root_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE} | grub_add_tab)"
+    fi
+    printf '%s\n' "${prepare_root_cache}" | sed "s/^/$submenu_indentation/"
+  else
+    if [ -z "${prepare_boot_cache}" ]; then
+      prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
+    fi
+    printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
+  fi
+  message="$(gettext_printf "Loading Linux %s ..." ${version})"
+  sed "s/^/$submenu_indentation/" << EOF
+       echo    '$(echo "$message" | grub_quote)'
+       linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
+EOF
+  if test -n "${initrd}" ; then
+    # TRANSLATORS: ramdisk isn't identifier. Should be translated.
+    message="$(gettext_printf "Loading initial ramdisk ...")"
+    sed "s/^/$submenu_indentation/" << EOF
+       echo    '$(echo "$message" | grub_quote)'
+       initrd  ${rel_dirname}/${initrd}
+EOF
+  fi
+  sed "s/^/$submenu_indentation/" << EOF
+}
+EOF
+}
+
+machine=`uname -m`
+case "x$machine" in
+    xi?86 | xx86_64)
+       list=`for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do
+                  if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
+              done` ;;
+    *) 
+       list=`for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do
+                  if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
+            done` ;;
+esac
+
+case "$machine" in
+    i?86) GENKERNEL_ARCH="x86" ;;
+    mips|mips64) GENKERNEL_ARCH="mips" ;;
+    mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;;
+    arm*) GENKERNEL_ARCH="arm" ;;
+    *) GENKERNEL_ARCH="$machine" ;;
+esac
+
+prepare_boot_cache=
+prepare_root_cache=
+boot_device_id=
+title_correction_code=
+
+# Extra indentation to add to menu entries in a submenu. We're not in a submenu
+# yet, so it's empty. In a submenu it will be equal to '\t' (one tab).
+submenu_indentation=""
+
+is_first_entry=true
+while [ "x$list" != "x" ] ; do
+  linux=`version_find_latest $list`
+  gettext_printf "Found linux image: %s\n" "$linux" >&2
+  basename=`basename $linux`
+  dirname=`dirname $linux`
+  rel_dirname=`make_system_path_relative_to_its_root $dirname`
+  version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
+  alt_version=`echo $version | sed -e "s,\.old$,,g"`
+  linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
+
+  initrd=
+  for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
+          "initrd-${version}" "initramfs-${version}.img" \
+          "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
+          "initrd-${alt_version}" "initramfs-${alt_version}.img" \
+          "initramfs-genkernel-${version}" \
+          "initramfs-genkernel-${alt_version}" \
+          "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
+          "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}"; do
+    if test -e "${dirname}/${i}" ; then
+      initrd="$i"
+      break
+    fi
+  done
+
+  config=
+  for i in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
+    if test -e "${i}" ; then
+      config="${i}"
+      break
+    fi
+  done
+
+  initramfs=
+  if test -n "${config}" ; then
+      initramfs=`grep CONFIG_INITRAMFS_SOURCE= "${config}" | cut -f2 -d= | tr -d \"`
+  fi
+
+  if test -n "${initrd}" ; then
+    gettext_printf "Found initrd image: %s\n" "${dirname}/${initrd}" >&2
+  elif test -z "${initramfs}" ; then
+    # "UUID=" and "ZFS=" magic is parsed by initrd or initramfs.  Since there's
+    # no initrd or builtin initramfs, it can't work here.
+    linux_root_device_thisversion=${GRUB_DEVICE}
+  fi
+
+  if [ "x$is_first_entry" = xtrue ]; then
+    linux_entry "${OS}" "${version}" simple \
+    "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
+
+    submenu_indentation="$grub_tab"
+    
+    if [ -z "$boot_device_id" ]; then
+       boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
+    fi
+    # TRANSLATORS: %s is replaced with an OS name
+    echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
+  fi
+
+  linux_entry "${OS}" "${version}" advanced \
+              "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
+  if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
+    linux_entry "${OS}" "${version}" recovery \
+                "single ${GRUB_CMDLINE_LINUX}"
+  fi
+
+  list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
+  is_first_entry=false
+done
+
+# If at least one kernel was found, then we need to
+# add a closing '}' for the submenu command.
+if [ x"$is_first_entry" != xtrue ]; then
+  echo '}'
+fi
+
+echo "$title_correction_code"
diff --git a/grub.d/20_linux_xen b/grub.d/20_linux_xen
new file mode 100755 (executable)
index 0000000..dbd8891
--- /dev/null
@@ -0,0 +1,278 @@
+#! /bin/sh
+set -e
+
+# grub-mkconfig helper script.
+# Copyright (C) 2006,2007,2008,2009,2010  Free Software Foundation, Inc.
+#
+# GRUB is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# GRUB is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
+
+prefix="/usr"
+exec_prefix="${prefix}"
+datarootdir="${prefix}/share"
+
+. "/usr/share/grub/grub-mkconfig_lib"
+
+export TEXTDOMAIN=grub
+export TEXTDOMAINDIR="${datarootdir}/locale"
+
+CLASS="--class gnu-linux --class gnu --class os --class xen"
+
+if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
+  OS=GNU/Linux
+else
+  OS="${GRUB_DISTRIBUTOR} GNU/Linux"
+  CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
+fi
+
+# loop-AES arranges things so that /dev/loop/X can be our root device, but
+# the initrds that Linux uses don't like that.
+case ${GRUB_DEVICE} in
+  /dev/loop/*|/dev/loop[0-9])
+    GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
+  ;;
+esac
+
+if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
+    || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
+    || uses_abstraction "${GRUB_DEVICE}" lvm; then
+  LINUX_ROOT_DEVICE=${GRUB_DEVICE}
+else
+  LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
+fi
+
+# Allow overriding GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT.
+if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE}" ]; then
+  GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX_XEN_REPLACE}"
+fi
+if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}" ]; then
+  GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}"
+fi
+
+GRUBFS="`${grub_probe} --device ${GRUB_DEVICE} --target=fs 2>/dev/null || true`"
+
+if [ x"$GRUBFS" = x ]; then
+    GRUBFS="$(stat -f --printf=%T /)"
+fi
+
+case x"$GRUBFS" in
+    xbtrfs)
+       rootsubvol="`make_system_path_relative_to_its_root /`"
+       rootsubvol="${rootsubvol#/}"
+       if [ "x${rootsubvol}" != x ]; then
+           GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}"
+       fi;;
+    xzfs)
+       rpool=`${grub_probe} --device ${GRUB_DEVICE} --target=fs_label 2>/dev/null || true`
+       bootfs="`make_system_path_relative_to_its_root / | sed -e "s,@$,,"`"
+       LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs}"
+       ;;
+esac
+
+title_correction_code=
+
+linux_entry ()
+{
+  os="$1"
+  version="$2"
+  xen_version="$3"
+  type="$4"
+  args="$5"
+  xen_args="$6"
+  if [ -z "$boot_device_id" ]; then
+      boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
+  fi
+  if [ x$type != xsimple ] ; then
+      if [ x$type = xrecovery ] ; then
+         title="$(gettext_printf "%s, with Xen %s and Linux %s (recovery mode)" "${os}" "${xen_version}" "${version}")"
+      else
+         title="$(gettext_printf "%s, with Xen %s and Linux %s" "${os}" "${xen_version}" "${version}")"
+      fi
+      replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
+      if [ x"Xen ${xen_version}>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
+         quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
+         title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
+         grub_warn "$(gettext_printf "Please don't use old title \`%s' for GRUB_DEFAULT, use \`%s' (for versions before 2.00) or \`%s' (for 2.00 or later)" "$GRUB_ACTUAL_DEFAULT" "$replacement_title" "gnulinux-advanced-$boot_device_id>gnulinux-$version-$type-$boot_device_id")"
+      fi
+      echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'xen-gnulinux-$version-$type-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
+  else
+      title="$(gettext_printf "%s, with Xen hypervisor" "${os}")"
+      echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'xen-gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
+  fi
+  if [ x$type != xrecovery ] ; then
+      save_default_entry | grub_add_tab | sed "s/^/$submenu_indentation/"
+  fi
+
+  if [ -z "${prepare_boot_cache}" ]; then
+    prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
+  fi
+  printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
+  xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})"
+  lmessage="$(gettext_printf "Loading Linux %s ..." ${version})"
+  sed "s/^/$submenu_indentation/" << EOF
+       echo    '$(echo "$xmessage" | grub_quote)'
+        if [ "\$grub_platform" = "pc" -o "\$grub_platform" = "" ]; then
+            xen_rm_opts=
+        else
+            xen_rm_opts="no-real-mode edd=off"
+        fi
+       multiboot       ${rel_xen_dirname}/${xen_basename} placeholder ${xen_args} \${xen_rm_opts}
+       echo    '$(echo "$lmessage" | grub_quote)'
+       module  ${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
+EOF
+  if test -n "${initrd}" ; then
+    # TRANSLATORS: ramdisk isn't identifier. Should be translated.
+    message="$(gettext_printf "Loading initial ramdisk ...")"
+    sed "s/^/$submenu_indentation/" << EOF
+       echo    '$(echo "$message" | grub_quote)'
+       module  ${rel_dirname}/${initrd}
+EOF
+  fi
+  sed "s/^/$submenu_indentation/" << EOF
+}
+EOF
+}
+
+linux_list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do
+    if grub_file_is_not_garbage "$i"; then
+       basename=$(basename $i)
+       version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")
+       dirname=$(dirname $i)
+       config=
+       for j in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
+           if test -e "${j}" ; then
+               config="${j}"
+               break
+           fi
+       done
+        if (grep -qx "CONFIG_XEN_DOM0=y" "${config}" 2> /dev/null || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}" 2> /dev/null); then echo -n "$i " ; fi
+    fi
+    done`
+if [ "x${linux_list}" = "x" ] ; then
+    exit 0
+fi
+
+file_is_not_sym () {
+    case "$1" in
+       */xen-syms-*)
+           return 1;;
+       *)
+           return 0;;
+    esac
+}
+
+xen_list=`for i in /boot/xen*; do
+        if grub_file_is_not_garbage "$i" && file_is_not_sym "$i" ; then echo -n "$i " ; fi
+      done`
+prepare_boot_cache=
+boot_device_id=
+
+title_correction_code=
+
+machine=`uname -m`
+
+case "$machine" in
+    i?86) GENKERNEL_ARCH="x86" ;;
+    mips|mips64) GENKERNEL_ARCH="mips" ;;
+    mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;;
+    arm*) GENKERNEL_ARCH="arm" ;;
+    *) GENKERNEL_ARCH="$machine" ;;
+esac
+
+# Extra indentation to add to menu entries in a submenu. We're not in a submenu
+# yet, so it's empty. In a submenu it will be equal to '\t' (one tab).
+submenu_indentation=""
+
+is_first_entry=true
+
+while [ "x${xen_list}" != "x" ] ; do
+    list="${linux_list}"
+    current_xen=`version_find_latest $xen_list`
+    xen_basename=`basename ${current_xen}`
+    xen_dirname=`dirname ${current_xen}`
+    rel_xen_dirname=`make_system_path_relative_to_its_root $xen_dirname`
+    xen_version=`echo $xen_basename | sed -e "s,.gz$,,g;s,^xen-,,g"`
+    if [ -z "$boot_device_id" ]; then
+       boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
+    fi
+    if [ "x$is_first_entry" != xtrue ]; then
+       echo "  submenu '$(gettext_printf "Xen hypervisor, version %s" "${xen_version}" | grub_quote)' \$menuentry_id_option 'xen-hypervisor-$xen_version-$boot_device_id' {"
+    fi
+    while [ "x$list" != "x" ] ; do
+       linux=`version_find_latest $list`
+       gettext_printf "Found linux image: %s\n" "$linux" >&2
+       basename=`basename $linux`
+       dirname=`dirname $linux`
+       rel_dirname=`make_system_path_relative_to_its_root $dirname`
+       version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
+       alt_version=`echo $version | sed -e "s,\.old$,,g"`
+       linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
+
+       initrd=
+       for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
+          "initrd-${version}" "initramfs-${version}.img" \
+          "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
+          "initrd-${alt_version}" "initramfs-${alt_version}.img" \
+          "initramfs-genkernel-${version}" \
+          "initramfs-genkernel-${alt_version}" \
+          "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
+          "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}" ; do
+           if test -e "${dirname}/${i}" ; then
+               initrd="$i"
+               break
+           fi
+       done
+       if test -n "${initrd}" ; then
+           gettext_printf "Found initrd image: %s\n" "${dirname}/${initrd}" >&2
+       else
+    # "UUID=" magic is parsed by initrds.  Since there's no initrd, it can't work here.
+           linux_root_device_thisversion=${GRUB_DEVICE}
+       fi
+
+       if [ "x$is_first_entry" = xtrue ]; then
+           linux_entry "${OS}" "${version}" "${xen_version}" simple \
+               "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
+
+           submenu_indentation="$grub_tab$grub_tab"
+    
+           if [ -z "$boot_device_id" ]; then
+               boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
+           fi
+            # TRANSLATORS: %s is replaced with an OS name
+           echo "submenu '$(gettext_printf "Advanced options for %s (with Xen hypervisor)" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
+       echo "  submenu '$(gettext_printf "Xen hypervisor, version %s" "${xen_version}" | grub_quote)' \$menuentry_id_option 'xen-hypervisor-$xen_version-$boot_device_id' {"
+       fi
+       is_first_entry=false
+
+       linux_entry "${OS}" "${version}" "${xen_version}" advanced \
+           "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
+       if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
+           linux_entry "${OS}" "${version}" "${xen_version}" recovery \
+               "single ${GRUB_CMDLINE_LINUX}" "${GRUB_CMDLINE_XEN}"
+       fi
+
+       list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
+    done
+    if [ x"$is_first_entry" != xtrue ]; then
+       echo '  }'
+    fi
+    xen_list=`echo $xen_list | tr ' ' '\n' | grep -vx $current_xen | tr '\n' ' '`
+done
+
+# If at least one kernel was found, then we need to
+# add a closing '}' for the submenu command.
+if [ x"$is_first_entry" != xtrue ]; then
+  echo '}'
+fi
+
+echo "$title_correction_code"
diff --git a/grub.d/30_os-prober b/grub.d/30_os-prober
new file mode 100755 (executable)
index 0000000..4af65f2
--- /dev/null
@@ -0,0 +1,298 @@
+#! /bin/sh
+set -e
+
+# grub-mkconfig helper script.
+# Copyright (C) 2006,2007,2008,2009  Free Software Foundation, Inc.
+#
+# GRUB is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# GRUB is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
+
+prefix="/usr"
+exec_prefix="${prefix}"
+datarootdir="${prefix}/share"
+
+export TEXTDOMAIN=grub
+export TEXTDOMAINDIR="${datarootdir}/locale"
+
+. "/usr/share/grub/grub-mkconfig_lib"
+
+if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
+  exit 0
+fi
+
+if [ -z "`which os-prober 2> /dev/null`" -o -z "`which linux-boot-prober 2> /dev/null`" ] ; then
+  # missing os-prober and/or linux-boot-prober
+  exit 0
+fi
+
+OSPROBED="`os-prober | tr ' ' '^' | paste -s -d ' '`"
+if [ -z "${OSPROBED}" ] ; then
+  # empty os-prober output, nothing doing
+  exit 0
+fi
+
+osx_entry() {
+    if [ x$2 = x32 ]; then
+        # TRANSLATORS: it refers to kernel architecture (32-bit)
+       bitstr="$(gettext "(32-bit)")"
+    else
+        # TRANSLATORS: it refers to kernel architecture (64-bit)
+       bitstr="$(gettext "(64-bit)")"
+    fi
+    # TRANSLATORS: it refers on the OS residing on device %s
+    onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
+        cat << EOF
+menuentry '$(echo "${LONGNAME} $bitstr $onstr" | grub_quote)' --class osx --class darwin --class os \$menuentry_id_option 'osprober-xnu-$2-$(grub_get_device_id "${DEVICE}")'  {
+EOF
+       save_default_entry | grub_add_tab
+       prepare_grub_to_access_device ${DEVICE} | grub_add_tab
+       cat << EOF
+        load_video
+        set do_resume=0
+        if [ /var/vm/sleepimage -nt10 / ]; then
+           if xnu_resume /var/vm/sleepimage; then
+             set do_resume=1
+           fi
+        fi
+        if [ \$do_resume = 0 ]; then
+           xnu_uuid ${OSXUUID} uuid
+           if [ -f /Extra/DSDT.aml ]; then
+              acpi -e /Extra/DSDT.aml
+           fi
+           if [ /kernelcache -nt /System/Library/Extensions ]; then
+              $1 /kernelcache boot-uuid=\${uuid} rd=*uuid
+           else
+              $1 /mach_kernel boot-uuid=\${uuid} rd=*uuid
+              if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
+                xnu_mkext /System/Library/Extensions.mkext
+              else
+                xnu_kextdir /System/Library/Extensions
+              fi
+           fi
+           if [ -f /Extra/Extensions.mkext ]; then
+              xnu_mkext /Extra/Extensions.mkext
+           fi
+           if [ -d /Extra/Extensions ]; then
+              xnu_kextdir /Extra/Extensions
+           fi
+           if [ -f /Extra/devprop.bin ]; then
+              xnu_devprop_load /Extra/devprop.bin
+           fi
+           if [ -f /Extra/splash.jpg ]; then
+              insmod jpeg
+              xnu_splash /Extra/splash.jpg
+           fi
+           if [ -f /Extra/splash.png ]; then
+              insmod png
+              xnu_splash /Extra/splash.png
+           fi
+           if [ -f /Extra/splash.tga ]; then
+              insmod tga
+              xnu_splash /Extra/splash.tga
+           fi
+        fi
+}
+EOF
+}
+
+used_osprober_linux_ids=
+
+for OS in ${OSPROBED} ; do
+  DEVICE="`echo ${OS} | cut -d ':' -f 1`"
+  LONGNAME="`echo ${OS} | cut -d ':' -f 2 | tr '^' ' '`"
+  LABEL="`echo ${OS} | cut -d ':' -f 3 | tr '^' ' '`"
+  BOOT="`echo ${OS} | cut -d ':' -f 4`"
+  BTRFS="`echo ${OS} | cut -d ':' -f 5`"
+  if [ "x$BTRFS" = "xbtrfs" ]; then
+       BTRFSuuid="`echo ${OS} | cut -d ':' -f 6`"
+       BTRFSsubvol="`echo ${OS} | cut -d ':' -f 7`"
+  fi
+
+  if [ -z "${LONGNAME}" ] ; then
+    LONGNAME="${LABEL}"
+  fi
+
+  gettext_printf "Found %s on %s\n" "${LONGNAME}" "${DEVICE}" >&2
+
+  case ${BOOT} in
+    chain)
+
+         onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
+      cat << EOF
+menuentry '$(echo "${LONGNAME} $onstr" | grub_quote)' --class windows --class os \$menuentry_id_option 'osprober-chain-$(grub_get_device_id "${DEVICE}")' {
+EOF
+      save_default_entry | grub_add_tab
+      prepare_grub_to_access_device ${DEVICE} | grub_add_tab
+
+      case ${LONGNAME} in
+       Windows\ Vista*|Windows\ 7*|Windows\ Server\ 2008*)
+       ;;
+       *)
+         cat << EOF
+       drivemap -s (hd0) \${root}
+EOF
+       ;;
+      esac
+
+      cat <<EOF
+       chainloader +1
+}
+EOF
+    ;;
+    efi)
+
+       EFIPATH=${DEVICE#*@}
+       DEVICE=${DEVICE%@*}
+       onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
+      cat << EOF
+menuentry '$(echo "${LONGNAME} $onstr" | grub_quote)' --class windows --class os \$menuentry_id_option 'osprober-efi-$(grub_get_device_id "${DEVICE}")' {
+EOF
+      save_default_entry | sed -e "s/^/\t/"
+      prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
+
+      cat <<EOF
+       chainloader ${EFIPATH}
+}
+EOF
+    ;;
+    linux)
+      if [ "x$BTRFS" = "xbtrfs" ]; then
+         LINUXPROBED="`linux-boot-prober btrfs ${BTRFSuuid} ${BTRFSsubvol}  2> /dev/null | tr ' ' '^' | paste -s -d ' '`"
+      else
+         LINUXPROBED="`linux-boot-prober ${DEVICE} 2> /dev/null | tr ' ' '^' | paste -s -d ' '`"
+      fi
+      prepare_boot_cache=
+      boot_device_id=
+      is_first_entry=true
+      title_correction_code=
+      OS="${LONGNAME}"
+
+      for LINUX in ${LINUXPROBED} ; do
+        LROOT="`echo ${LINUX} | cut -d ':' -f 1`"
+        LBOOT="`echo ${LINUX} | cut -d ':' -f 2`"
+        LLABEL="`echo ${LINUX} | cut -d ':' -f 3 | tr '^' ' '`"
+        LKERNEL="`echo ${LINUX} | cut -d ':' -f 4`"
+        LINITRD="`echo ${LINUX} | cut -d ':' -f 5`"
+        LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`"
+
+        if [ -z "${LLABEL}" ] ; then
+          LLABEL="${LONGNAME}"
+        fi
+
+       if [ "${LROOT}" != "${LBOOT}" ]; then
+         LKERNEL="${LKERNEL#/boot}"
+         LINITRD="${LINITRD#/boot}"
+       fi
+
+       onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
+       recovery_params="$(echo "${LPARAMS}" | grep single)" || true
+       counter=1
+       while echo "$used_osprober_linux_ids" | grep 'osprober-gnulinux-$LKERNEL-${recovery_params}-$counter-$boot_device_id' > /dev/null; do
+           counter=$((counter+1));
+       done
+       if [ -z "$boot_device_id" ]; then
+           boot_device_id="$(grub_get_device_id "${DEVICE}")"
+       fi
+       used_osprober_linux_ids="$used_osprober_linux_ids 'osprober-gnulinux-$LKERNEL-${recovery_params}-$counter-$boot_device_id'"
+
+       if [ -z "${prepare_boot_cache}" ]; then
+         prepare_boot_cache="$(prepare_grub_to_access_device ${LBOOT} | grub_add_tab)"
+       fi
+
+       if [ "x$is_first_entry" = xtrue ]; then
+            cat << EOF
+menuentry '$(echo "$OS $onstr" | grub_quote)' --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-simple-$boot_device_id' {
+EOF
+           save_default_entry | grub_add_tab
+           printf '%s\n' "${prepare_boot_cache}"
+           cat <<  EOF
+       linux ${LKERNEL} ${LPARAMS}
+EOF
+            if [ -n "${LINITRD}" ] ; then
+          cat << EOF
+       initrd ${LINITRD}
+EOF
+            fi
+        cat << EOF
+}
+EOF
+           echo "submenu '$(gettext_printf "Advanced options for %s" "${OS} $onstr" | grub_quote)' \$menuentry_id_option 'osprober-gnulinux-advanced-$boot_device_id' {"
+           is_first_entry=false
+       fi
+       title="${LLABEL} $onstr"
+        cat << EOF
+       menuentry '$(echo "$title" | grub_quote)' --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-$LKERNEL-${recovery_params}-$boot_device_id' {
+EOF
+       save_default_entry | sed -e "s/^/$grub_tab$grub_tab/"
+       printf '%s\n' "${prepare_boot_cache}" | grub_add_tab
+       cat <<  EOF
+               linux ${LKERNEL} ${LPARAMS}
+EOF
+        if [ -n "${LINITRD}" ] ; then
+            cat << EOF
+               initrd ${LINITRD}
+EOF
+        fi
+        cat << EOF
+       }
+EOF
+       if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
+           replacement_title="$(echo "Advanced options for ${OS} $onstr" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
+           quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
+           title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
+           grub_warn "$(gettext_printf "Please don't use old title \`%s' for GRUB_DEFAULT, use \`%s' (for versions before 2.00) or \`%s' (for 2.00 or later)" "$GRUB_ACTUAL_DEFAULT" "$replacement_title" "gnulinux-advanced-$boot_device_id>gnulinux-$version-$type-$boot_device_id")"
+       fi
+      done
+      if [ x"$is_first_entry" != xtrue ]; then
+         echo '}'
+      fi
+      echo "$title_correction_code"
+    ;;
+    macosx)
+      OSXUUID="`${grub_probe} --target=fs_uuid --device ${DEVICE} 2> /dev/null`"
+      osx_entry xnu_kernel 32
+      osx_entry xnu_kernel64 64
+    ;;
+    hurd)
+      onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
+      cat << EOF
+menuentry '$(echo "${LONGNAME} $onstr" | grub_quote)' --class hurd --class gnu --class os \$menuentry_id_option 'osprober-gnuhurd-/boot/gnumach.gz-false-$(grub_get_device_id "${DEVICE}")' {
+EOF
+      save_default_entry | grub_add_tab
+      prepare_grub_to_access_device ${DEVICE} | grub_add_tab
+      grub_device="`${grub_probe} --device ${DEVICE} --target=drive`"
+      mach_device="`echo "${grub_device}" | sed -e 's/(\(hd.*\),msdos\(.*\))/\1s\2/'`"
+      grub_fs="`${grub_probe} --device ${DEVICE} --target=fs`"
+      case "${grub_fs}" in
+       *fs)    hurd_fs="${grub_fs}" ;;
+       *)      hurd_fs="${grub_fs}fs" ;;
+      esac
+      cat << EOF
+       multiboot /boot/gnumach.gz root=device:${mach_device}
+       module /hurd/${hurd_fs}.static ${hurd_fs} --readonly \\
+                       --multiboot-command-line='\${kernel-command-line}' \\
+                       --host-priv-port='\${host-port}' \\
+                       --device-master-port='\${device-port}' \\
+                       --exec-server-task='\${exec-task}' -T typed '\${root}' \\
+                       '\$(task-create)' '\$(task-resume)'
+       module /lib/ld.so.1 exec /hurd/exec '\$(exec-task=task-create)'
+}
+EOF
+    ;;
+    *)
+      echo -n "  "
+      # TRANSLATORS: %s is replaced by OS name.
+      gettext_printf "%s is not yet supported by grub-mkconfig.\n" "${LONGNAME}" >&2
+    ;;
+  esac
+done
diff --git a/grub.d/40_custom b/grub.d/40_custom
new file mode 100755 (executable)
index 0000000..48068de
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec tail -n +3 $0
+# This file provides an easy way to add custom menu entries.  Simply type the
+# menu entries you want to add after this comment.  Be careful not to change
+# the 'exec tail' line above.
diff --git a/grub.d/41_custom b/grub.d/41_custom
new file mode 100755 (executable)
index 0000000..fcc21a9
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+cat <<EOF
+if [ -f  \${config_directory}/custom.cfg ]; then
+  source \${config_directory}/custom.cfg
+elif [ -z "\${config_directory}" -a -f  \$prefix/custom.cfg ]; then
+  source \$prefix/custom.cfg;
+fi
+EOF
+
diff --git a/grub.d/README b/grub.d/README
new file mode 100644 (file)
index 0000000..3ea109d
--- /dev/null
@@ -0,0 +1,11 @@
+
+All executable files in this directory are processed in shell expansion order.
+
+  00_*: Reserved for 00_header.
+  10_*: Native boot entries.
+  20_*: Third party apps (e.g. memtest86+).
+
+The number namespace in-between is configurable by system installer and/or
+administrator.  For example, you can add an entry to boot another OS as
+01_otheros, 11_otheros, etc, depending on the position you want it to occupy in
+the menu; and then adjust the default setting via /etc/default/grub.
index d1ad2e2ae7da4220268405418dd24fec36eeb8bc..fbe2432b053d5c91b4c9ff98291ba537f827d6e6 100755 (executable)
@@ -1,7 +1,7 @@
 #!/sbin/runscript
 # Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.initd-r3,v 1.1 2013/03/01 08:18:17 eras Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.initd-r5,v 1.2 2013/04/16 05:52:39 eras Exp $
 
 daemon_clamd="/usr/sbin/clamd"
 daemon_freshclam="/usr/bin/freshclam"
@@ -30,9 +30,7 @@ get_config() {
 }
 
 start() {
-       local clamd_socket=$(get_config clamd LocalSocket /var/run/clamav/clamd.sock)
-       local clamd_user=$(get_config clamd User clamav)
-       local freshclam_user=$(get_config freshclam DatabaseOwner clamav)
+       # populate variables and fix log file permissions
        logfix
 
        if [ "${START_CLAMD}" = "yes" ]; then
@@ -50,6 +48,9 @@ start() {
        fi
 
        if [ "${START_FRESHCLAM}" = "yes" ]; then
+               checkpath --quiet --mode 755 \
+                       --owner "${clamd_user}":"${clamd_user}" \
+                       --directory `dirname ${clamd_socket}`
                ebegin "Starting freshclam"
                start-stop-daemon --start --quiet \
                        --nicelevel ${FRESHCLAM_NICELEVEL:-0} \
@@ -95,6 +96,10 @@ stop() {
 }
 
 logfix() {
+       clamd_socket=$(get_config clamd LocalSocket /run/clamav/clamd.sock)
+       clamd_user=$(get_config clamd User clamav)
+       freshclam_user=$(get_config freshclam DatabaseOwner clamav)
+
        if [ "${START_CLAMD}" = "yes" ]; then
                # fix clamd log permissions
                # (might be clobbered by logrotate or something)
index fb163abc23b2152cb98acdda7125504bc3701217..51857a1f751d783392ae009c0339c5ed6a256c58 100755 (executable)
@@ -1,33 +1,23 @@
 #!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/fancontrol-init.d,v 1.1 2007/05/17 07:31:41 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/fancontrol-init.d-2,v 1.1 2012/12/28 00:00:03 flameeyes Exp $
 
 CONFIG=/etc/fancontrol
-PID=/var/run/fancontrol.pid
 
 depend() {
-       after lm_sensors
+       need localmount
+       use lm_sensors
 }
 
-checkconfig() {
+command=/usr/sbin/fancontrol
+command_arguments="${CONFIG}"
+start_stop_daemon_args="--background"
+pidfile=/var/run/fancontrol.pid
+
+start_pre() {
        if [ ! -f ${CONFIG} ]; then
                eerror "Configuration file ${CONFIG} not found"
                return 1
        fi
 }
-
-start() {
-       checkconfig || return 1
-
-       ebegin "Starting fancontrol"
-       start-stop-daemon --start --quiet --background --pidfile ${PID} \
-               --exec /usr/sbin/fancontrol -- ${CONFIG}
-       eend ${?}
-}
-
-stop() {
-       ebegin "Stopping fancontrol"
-       start-stop-daemon --stop --pidfile ${PID}
-       eend ${?}
-}
index 6806bc9c72823ebd577917563e77160977792ec7..a63d076888c57e0645ec17d6e74e830a0245a56e 100755 (executable)
@@ -1,15 +1,16 @@
 #!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/files/iptables-1.4.13-r1.init,v 1.1 2012/09/14 17:58:26 axs Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/files/iptables-1.4.13-r1.init,v 1.3 2013/04/27 17:29:09 vapier Exp $
 
-extra_commands="save panic"
+extra_commands="check save panic"
 extra_started_commands="reload"
 
 iptables_name=${SVCNAME}
-if [ "${iptables_name}" != "iptables" -a "${iptables_name}" != "ip6tables" ] ; then
-       iptables_name="iptables"
-fi
+case ${iptables_name} in
+iptables|ip6tables) ;;
+*) iptables_name="iptables" ;;
+esac
 
 iptables_bin="/sbin/${iptables_name}"
 case ${iptables_name} in
@@ -20,6 +21,7 @@ case ${iptables_name} in
 esac
 
 depend() {
+       need localmount #434774
        before net
 }
 
@@ -79,6 +81,7 @@ stop() {
 
 reload() {
        checkkernel || return 1
+       checkrules || return 1
        ebegin "Flushing firewall"
        local a
        for a in $(cat ${iptables_proc}) ; do
@@ -90,6 +93,17 @@ reload() {
        start
 }
 
+checkrules() {
+       ebegin "Checking rules"
+       ${iptables_bin}-restore --test ${SAVE_RESTORE_OPTIONS} < "${iptables_save}"
+       eend $?
+}
+
+check() {
+       # Short name for users of init.d script.
+       checkrules
+}
+
 save() {
        ebegin "Saving ${iptables_name} state"
        checkpath -q -d "$(dirname "${iptables_save}")"
index 6806bc9c72823ebd577917563e77160977792ec7..a63d076888c57e0645ec17d6e74e830a0245a56e 100755 (executable)
@@ -1,15 +1,16 @@
 #!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/files/iptables-1.4.13-r1.init,v 1.1 2012/09/14 17:58:26 axs Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/files/iptables-1.4.13-r1.init,v 1.3 2013/04/27 17:29:09 vapier Exp $
 
-extra_commands="save panic"
+extra_commands="check save panic"
 extra_started_commands="reload"
 
 iptables_name=${SVCNAME}
-if [ "${iptables_name}" != "iptables" -a "${iptables_name}" != "ip6tables" ] ; then
-       iptables_name="iptables"
-fi
+case ${iptables_name} in
+iptables|ip6tables) ;;
+*) iptables_name="iptables" ;;
+esac
 
 iptables_bin="/sbin/${iptables_name}"
 case ${iptables_name} in
@@ -20,6 +21,7 @@ case ${iptables_name} in
 esac
 
 depend() {
+       need localmount #434774
        before net
 }
 
@@ -79,6 +81,7 @@ stop() {
 
 reload() {
        checkkernel || return 1
+       checkrules || return 1
        ebegin "Flushing firewall"
        local a
        for a in $(cat ${iptables_proc}) ; do
@@ -90,6 +93,17 @@ reload() {
        start
 }
 
+checkrules() {
+       ebegin "Checking rules"
+       ${iptables_bin}-restore --test ${SAVE_RESTORE_OPTIONS} < "${iptables_save}"
+       eend $?
+}
+
+check() {
+       # Short name for users of init.d script.
+       checkrules
+}
+
 save() {
        ebegin "Saving ${iptables_name} state"
        checkpath -q -d "$(dirname "${iptables_save}")"
index 1a566cf197b42e658fd1a1d965e8bd6dfd557c54..27421e26ec20766904b7d3711d206eb6ea1e34e0 100755 (executable)
@@ -1,40 +1,40 @@
 #!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/files/mdraid.rc-3.1.1,v 1.1 2010/01/24 22:20:57 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/files/mdraid.rc,v 1.6 2011/11/12 21:06:44 vapier Exp $
 
 depend() {
-       if [ ! -e /sbin/functions.sh ] ; then
-               # on baselayout-1 this could cause
-               # dependency-cycles with checkroot (before *)
-               before checkfs fsck
-               after modules
-       fi
-}
-
-run_addon() {
-       local f=/lib64/rcscripts/addons/$1.sh
-       if [ -r "$f" ]; then
-               ( . "$f" )
-       fi
-}
-start_addon() {
-       run_addon "$1"-start
-}
-stop_addon() {
-       run_addon "$1"-stop
+       before checkfs fsck
+       after modules
 }
 
 start() {
-       if [ -e /sbin/functions.sh ] ; then
-               eerror "The ${SVCNAME} init script is written for baselayout-2"
-               eerror "Please do not use it with baselayout-1"
-               return 1
+       local output
+
+       ebegin "Starting up RAID devices"
+       output=$(mdadm -As 2>&1)
+       eend $? "${output}"
+
+       local pat="/dev/md_d*"
+       set -- ${pat}
+       if [ "$*" != "${pat}" ] ; then
+               ebegin "Creating RAID device partitions"
+               blockdev "$@"
+               eend $?
+               # wait because vgscan runs next, and we want udev to fire
+               sleep 1
        fi
 
-       start_addon raid
+       return 0
 }
 
 stop() {
-       stop_addon raid
+       local output
+
+       # XXX: Maybe drop this check ?
+       [ ! -e /etc/mdadm/mdadm.conf ] && [ ! -e /etc/mdadm.conf ] && return 0
+
+       ebegin "Shutting down RAID devices (mdadm)"
+       output=$(mdadm -Ss 2>&1)
+       eend $? "${output}"
 }
index 78715e2ff4a9f2c665868ac2eeef17e7a37daeb6..a50a6ef43a25b5f5aafeb16bb28a9246d802d9fd 100755 (executable)
@@ -1,11 +1,11 @@
 #!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntp-client.rc,v 1.11 2007/03/09 17:24:28 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntp-client.rc,v 1.12 2012/11/11 05:58:25 vapier Exp $
 
 depend() {
        before cron portmap
-       need net
+       after net
        use dns logger
 }
 
diff --git a/init.d/sntp b/init.d/sntp
new file mode 100755 (executable)
index 0000000..cd42b44
--- /dev/null
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/sntp.rc,v 1.1 2013/07/06 07:15:02 pacho Exp $
+
+depend() {
+       before cron portmap
+       after net
+       use dns logger
+}
+
+checkconfig() {
+       if [ -z "${SNTP_OPTS}" ] ; then
+               eerror "Please edit /etc/conf.d/sntp"
+               eerror "I need to know what server/options to use!"
+               return 1
+       fi
+       return 0
+}
+
+start() {
+       checkconfig || return $?
+
+       ebegin "Setting clock via SNTP"
+       /usr/bin/sntp ${SNTP_OPTS}
+       eend $? "Failed to set clock"
+}
index d0708a4b4f3bd7f3d637af86e0ad6e14a93d143c..63eef624ac77758120c53aff3160110f1f037b2a 100755 (executable)
@@ -1,12 +1,12 @@
 #!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v 1.4 2011/09/14 23:00:38 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.3.1-spamd.init,v 1.6 2013/10/17 11:44:12 zlogene Exp $
 
 # NB: Config is in /etc/conf.d/spamd
 
 # Provide a default location if they haven't in /etc/conf.d/spamd
-PIDFILE=${PIDFILE:-/var/run/spamd.pid}
+PIDFILE=${PIDFILE:-/run/spamd.pid}
 
 extra_started_commands="reload"
 
@@ -14,8 +14,8 @@ depend() {
        need net
        before mta
        use logger
-  use postgresql
- use mysql
+       use postgresql
      use mysql
 }
 
 start() {
@@ -41,6 +41,6 @@ stop() {
 
 reload() {
        ebegin "Reloading configuration"
-       kill -HUP $(< ${PIDFILE})
+       start-stop-daemon --signal HUP --quiet --pidfile ${PIDFILE}
        eend $?
 }
index 62d62a076f7651f9c3c4434c934ebceccb17a836..eacf0c4883ea0eb55ebc5dbd9a1aac799fd83df6 100644 (file)
@@ -1,2 +1,4 @@
+/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32
+/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3
 /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/32
 /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3
index 7bdff6711857b1e4d0428fa753154c6817c4865b..d9d8d3967518202f87ef4a33e24a80eb87839e2e 100644 (file)
@@ -59,7 +59,7 @@
 # When used in --follow (aka --monitor) mode, mdadm needs a
 # mail address and/or a program.  This can be given with "mailaddr"
 # and "program" lines to that monitoring can be started using
-#    mdadm --follow --scan & echo $! > /var/run/mdadm
+#    mdadm --follow --scan & echo $! > /run/mdadm/mon.pid
 # If the lines are not found, mdadm will exit quietly
 #MAILADDR root@mydomain.tld
 #PROGRAM /usr/sbin/handle-mdadm-events
diff --git a/pam.d/system-auth-winbind b/pam.d/system-auth-winbind
new file mode 100644 (file)
index 0000000..454b94d
--- /dev/null
@@ -0,0 +1,18 @@
+#%PAM-1.0
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.6/system-auth-winbind.pam,v 1.1 2011/06/30 15:50:28 dagger Exp $
+
+auth        required      pam_env.so
+auth        sufficient    pam_winbind.so
+auth        sufficient    pam_unix.so likeauth nullok use_first_pass
+auth        required      pam_deny.so
+
+account     sufficient    pam_winbind.so
+account     required      pam_unix.so
+
+password    required      pam_cracklib.so retry=3
+password    sufficient    pam_unix.so nullok use_authtok md5 shadow
+password    required      pam_deny.so
+
+session     required      pam_mkhomedir.so skel=/etc/skel/ umask=0022 
+session     required      pam_limits.so
+session     required      pam_unix.so
index 5e42c6d34d95864d674939eed4b89df12f1512d8..0a137c7b0b1b20347c75fec3342ed7f99963bb17 100644 (file)
 engine = On
 
 ; This directive determines whether or not PHP will recognize code between
-; <? and ?> tags as PHP source which should be processed as such. It's been
-; recommended for several years that you not use the short tag "short cut" and
-; instead to use the full <?php and ?> tag combination. With the wide spread use
-; of XML and use of these tags by other languages, the server can become easily
-; confused and end up parsing the wrong code in the wrong context. But because
-; this short cut has been a feature for such a long time, it's currently still
-; supported for backwards compatibility, but we recommend you don't use them.
+; <? and ?> tags as PHP source which should be processed as such. It is
+; generally recommended that <?php and ?> should be used and that this feature
+; should be disabled, as enabling it may result in issues when generating XML
+; documents, however this remains supported for backward compatibility reasons.
+; Note that this directive does not control the <?= shorthand tag, which can be
+; used regardless of this directive.
 ; Default Value: On
 ; Development Value: Off
 ; Production Value: Off
@@ -1398,6 +1397,14 @@ session.save_handler = files
 ; http://php.net/session.save-path
 session.save_path = "/tmp"
 
+; Whether to use strict session mode.
+; Strict session mode does not accept uninitialized session ID and regenerate
+; session ID if browser sends uninitialized session ID. Strict mode protects
+; applications from session fixation via session adoption vulnerability. It is
+; disabled by default for maximum compatibility, but enabling it is encouraged.
+; https://wiki.php.net/rfc/strict_sessions
+session.use_strict_mode = 0
+
 ; Whether to use cookies.
 ; http://php.net/session.use-cookies
 session.use_cookies = 1
index 5e42c6d34d95864d674939eed4b89df12f1512d8..0a137c7b0b1b20347c75fec3342ed7f99963bb17 100644 (file)
 engine = On
 
 ; This directive determines whether or not PHP will recognize code between
-; <? and ?> tags as PHP source which should be processed as such. It's been
-; recommended for several years that you not use the short tag "short cut" and
-; instead to use the full <?php and ?> tag combination. With the wide spread use
-; of XML and use of these tags by other languages, the server can become easily
-; confused and end up parsing the wrong code in the wrong context. But because
-; this short cut has been a feature for such a long time, it's currently still
-; supported for backwards compatibility, but we recommend you don't use them.
+; <? and ?> tags as PHP source which should be processed as such. It is
+; generally recommended that <?php and ?> should be used and that this feature
+; should be disabled, as enabling it may result in issues when generating XML
+; documents, however this remains supported for backward compatibility reasons.
+; Note that this directive does not control the <?= shorthand tag, which can be
+; used regardless of this directive.
 ; Default Value: On
 ; Development Value: Off
 ; Production Value: Off
@@ -1398,6 +1397,14 @@ session.save_handler = files
 ; http://php.net/session.save-path
 session.save_path = "/tmp"
 
+; Whether to use strict session mode.
+; Strict session mode does not accept uninitialized session ID and regenerate
+; session ID if browser sends uninitialized session ID. Strict mode protects
+; applications from session fixation via session adoption vulnerability. It is
+; disabled by default for maximum compatibility, but enabling it is encouraged.
+; https://wiki.php.net/rfc/strict_sessions
+session.use_strict_mode = 0
+
 ; Whether to use cookies.
 ; http://php.net/session.use-cookies
 session.use_cookies = 1
index 5e42c6d34d95864d674939eed4b89df12f1512d8..0a137c7b0b1b20347c75fec3342ed7f99963bb17 100644 (file)
 engine = On
 
 ; This directive determines whether or not PHP will recognize code between
-; <? and ?> tags as PHP source which should be processed as such. It's been
-; recommended for several years that you not use the short tag "short cut" and
-; instead to use the full <?php and ?> tag combination. With the wide spread use
-; of XML and use of these tags by other languages, the server can become easily
-; confused and end up parsing the wrong code in the wrong context. But because
-; this short cut has been a feature for such a long time, it's currently still
-; supported for backwards compatibility, but we recommend you don't use them.
+; <? and ?> tags as PHP source which should be processed as such. It is
+; generally recommended that <?php and ?> should be used and that this feature
+; should be disabled, as enabling it may result in issues when generating XML
+; documents, however this remains supported for backward compatibility reasons.
+; Note that this directive does not control the <?= shorthand tag, which can be
+; used regardless of this directive.
 ; Default Value: On
 ; Development Value: Off
 ; Production Value: Off
@@ -1398,6 +1397,14 @@ session.save_handler = files
 ; http://php.net/session.save-path
 session.save_path = "/tmp"
 
+; Whether to use strict session mode.
+; Strict session mode does not accept uninitialized session ID and regenerate
+; session ID if browser sends uninitialized session ID. Strict mode protects
+; applications from session fixation via session adoption vulnerability. It is
+; disabled by default for maximum compatibility, but enabling it is encouraged.
+; https://wiki.php.net/rfc/strict_sessions
+session.use_strict_mode = 0
+
 ; Whether to use cookies.
 ; http://php.net/session.use-cookies
 session.use_cookies = 1
index 5e42c6d34d95864d674939eed4b89df12f1512d8..0a137c7b0b1b20347c75fec3342ed7f99963bb17 100644 (file)
 engine = On
 
 ; This directive determines whether or not PHP will recognize code between
-; <? and ?> tags as PHP source which should be processed as such. It's been
-; recommended for several years that you not use the short tag "short cut" and
-; instead to use the full <?php and ?> tag combination. With the wide spread use
-; of XML and use of these tags by other languages, the server can become easily
-; confused and end up parsing the wrong code in the wrong context. But because
-; this short cut has been a feature for such a long time, it's currently still
-; supported for backwards compatibility, but we recommend you don't use them.
+; <? and ?> tags as PHP source which should be processed as such. It is
+; generally recommended that <?php and ?> should be used and that this feature
+; should be disabled, as enabling it may result in issues when generating XML
+; documents, however this remains supported for backward compatibility reasons.
+; Note that this directive does not control the <?= shorthand tag, which can be
+; used regardless of this directive.
 ; Default Value: On
 ; Development Value: Off
 ; Production Value: Off
@@ -1398,6 +1397,14 @@ session.save_handler = files
 ; http://php.net/session.save-path
 session.save_path = "/tmp"
 
+; Whether to use strict session mode.
+; Strict session mode does not accept uninitialized session ID and regenerate
+; session ID if browser sends uninitialized session ID. Strict mode protects
+; applications from session fixation via session adoption vulnerability. It is
+; disabled by default for maximum compatibility, but enabling it is encouraged.
+; https://wiki.php.net/rfc/strict_sessions
+session.use_strict_mode = 0
+
 ; Whether to use cookies.
 ; http://php.net/session.use-cookies
 session.use_cookies = 1
index 5e42c6d34d95864d674939eed4b89df12f1512d8..0a137c7b0b1b20347c75fec3342ed7f99963bb17 100644 (file)
 engine = On
 
 ; This directive determines whether or not PHP will recognize code between
-; <? and ?> tags as PHP source which should be processed as such. It's been
-; recommended for several years that you not use the short tag "short cut" and
-; instead to use the full <?php and ?> tag combination. With the wide spread use
-; of XML and use of these tags by other languages, the server can become easily
-; confused and end up parsing the wrong code in the wrong context. But because
-; this short cut has been a feature for such a long time, it's currently still
-; supported for backwards compatibility, but we recommend you don't use them.
+; <? and ?> tags as PHP source which should be processed as such. It is
+; generally recommended that <?php and ?> should be used and that this feature
+; should be disabled, as enabling it may result in issues when generating XML
+; documents, however this remains supported for backward compatibility reasons.
+; Note that this directive does not control the <?= shorthand tag, which can be
+; used regardless of this directive.
 ; Default Value: On
 ; Development Value: Off
 ; Production Value: Off
@@ -1398,6 +1397,14 @@ session.save_handler = files
 ; http://php.net/session.save-path
 session.save_path = "/tmp"
 
+; Whether to use strict session mode.
+; Strict session mode does not accept uninitialized session ID and regenerate
+; session ID if browser sends uninitialized session ID. Strict mode protects
+; applications from session fixation via session adoption vulnerability. It is
+; disabled by default for maximum compatibility, but enabling it is encouraged.
+; https://wiki.php.net/rfc/strict_sessions
+session.use_strict_mode = 0
+
 ; Whether to use cookies.
 ; http://php.net/session.use-cookies
 session.use_cookies = 1
index e76fdfde5a5bcd4dac2207e301e960f7c64f1c2e..df84b2bbe9c5a8259fa7f2ad6fca94fdb643951f 100644 (file)
@@ -57,6 +57,8 @@ ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hoo
                   iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null \
                   plug rate route share shm softvol"
 
+GRUB_PLATFORMS="coreboot emu multiboot pc qemu"
+
 PHP_TARGETS="php5-3"
 
 I_KNOW_WHAT_I_AM_DOING=yes
index d4caa02dbd0fd02f1a1624214a56adde0a9f0c00..0a52a5534b2f49e5e6b406b4ef6eb3d4d6a32c01 100644 (file)
@@ -5,6 +5,8 @@
 
 # ~dev-lang/perl-5.14.2
 
+~dev-libs/expat-2.1.0
+
 ~dev-perl/aliased-0.300.0
 ~dev-perl/App-Cmd-0.314.0
 ~dev-perl/App-Nopaste-0.330.0
@@ -225,6 +227,8 @@ dev-python/fbrehm-libs
 ~dev-python/virtualenv-clone-0.2.4
 ~dev-python/virtualenvwrapper-3.7
 
+~media-libs/freetype-2.4.11
+
 ~net-analyzer/ndoutils-1.4_beta9
 ~net-analyzer/tcptrace-6.6.7
 
index 59f31c4be7de405fae96a443b126614b04001c67..c52e2243d66191b28e0fba548a59a5b0e99901b8 100644 (file)
@@ -46,6 +46,7 @@ dev-lang/php                            bcmath calendar cgi cli ctype curlwrappe
 
 dev-libs/cyrus-sasl                     authdaemond -java
 dev-libs/geoip                         city perl-geoipupdate static-libs
+dev-libs/gmp                           pgo
 dev-libs/libgcrypt                      idea
 dev-libs/libmemcached                  -doc tcmalloc
 dev-libs/libusb                         -doc
@@ -131,7 +132,8 @@ net-dns/libidn                          -java
 
 net-firewall/iptables                   extensions
 
-net-fs/samba                            oav quotas syslog
+net-fs/cifs-utils                      ads
+net-fs/samba                            oav quotas syslog winbind
 
 net-ftp/lftp                           -gnutls
 # net-ftp/proftpd                                authfile ifsession rewrite shaper sitemisc softquota vroot
@@ -139,7 +141,7 @@ net-ftp/proftpd                         authfile ban case copy ctrls deflate dis
 
 net-libs/libssh2                        gcrypt
 
-net-mail/courier-imap                   -gnutls
+net-mail/courier-imap                   -gnutls trashquota
 
 net-misc/curl                           libssh2
 net-misc/iputils                        -doc caps gnutls
@@ -164,6 +166,8 @@ sys-auth/pam_mysql                      openssl
 
 sys-block/parted                       device-mapper
 
+sys-boot/grub                          device-mapper
+
 sys-devel/gcc                           gcj libffi mudflap objc objc-gc objc++
 
 sys-kernel/gentoo-sources               -doc
diff --git a/request-key.d/cifs.idmap.conf b/request-key.d/cifs.idmap.conf
new file mode 100644 (file)
index 0000000..1341c1a
--- /dev/null
@@ -0,0 +1 @@
+create cifs.idmap * * /usr/sbin/cifs.idmap %k
diff --git a/request-key.d/cifs.upcall.conf b/request-key.d/cifs.upcall.conf
new file mode 100644 (file)
index 0000000..dac5ec0
--- /dev/null
@@ -0,0 +1 @@
+create dns_resolver * * /usr/sbin/cifs.upcall %k
diff --git a/security/pam_winbind.conf b/security/pam_winbind.conf
new file mode 100644 (file)
index 0000000..dd0b112
--- /dev/null
@@ -0,0 +1,38 @@
+#
+# pam_winbind configuration file
+#
+# /etc/security/pam_winbind.conf
+#
+
+[global]
+
+# turn on debugging
+;debug = no
+
+# turn on extended PAM state debugging
+;debug_state = no
+
+# request a cached login if possible
+# (needs "winbind offline logon = yes" in smb.conf)
+;cached_login = no
+
+# authenticate using kerberos
+;krb5_auth = no
+
+# when using kerberos, request a "FILE" krb5 credential cache type
+# (leave empty to just do krb5 authentication but not have a ticket
+# afterwards)
+;krb5_ccache_type =
+
+# make successful authentication dependend on membership of one SID
+# (can also take a name)
+;require_membership_of =
+
+# password expiry warning period in days
+;warn_pwd_expire = 14
+
+# omit pam conversations
+;silent = no
+
+# create homedirectory on the fly
+;mkhomedir = no
index c1e08f98fd267e5804c47231314975f002f3a932..cd761ef7b4828ee90817cbb40c7441aab026dc56 100644 (file)
@@ -12,7 +12,7 @@
 # Such custom configuration files for specific mainboards can be found at
 # http://www.lm-sensors.org/wiki/Configurations
 
-chip "lm78-*" "lm79-*" "lm80-*"
+chip "lm78-*" "lm79-*" "lm80-*" "lm96080-*"
 
     label temp1 "M/B Temp"
 
@@ -323,7 +323,7 @@ chip "w83627ehf-*" "w83627dhg-*" "w83667hg-*" "nct6775-*" "nct6776-*"
     set in7_min  3.3 * 0.90
     set in7_max  3.3 * 1.10
     set in8_min  3.0 * 0.90
-    set in8_max  3.0 * 1.10
+    set in8_max  3.3 * 1.10
 
 
 chip "w83627uhg-*"
@@ -340,7 +340,7 @@ chip "w83627uhg-*"
     set in7_min  5.0 * 0.90
     set in7_max  5.0 * 1.10
     set in8_min  3.0 * 0.90
-    set in8_max  3.0 * 1.10
+    set in8_max  3.3 * 1.10
 
 
 chip "f71805f-*"
diff --git a/systemd/system/ntpdate.service.d/00gentoo.conf b/systemd/system/ntpdate.service.d/00gentoo.conf
new file mode 100644 (file)
index 0000000..75e4f41
--- /dev/null
@@ -0,0 +1,2 @@
+[Service]
+Environment="SERVER=0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
diff --git a/systemd/system/slapd.service.d/00gentoo.conf b/systemd/system/slapd.service.d/00gentoo.conf
new file mode 100644 (file)
index 0000000..812ea68
--- /dev/null
@@ -0,0 +1,12 @@
+[Service]
+# Use the classical configuration file:
+#Environment="SLAPD_OPTIONS=-f /etc/openldap/slapd.conf"
+# Use the slapd configuration directory:
+#Environment="SLAPD_OPTIONS=-F /etc/openldap/slapd.d"
+
+Environment="SLAPD_URLS=ldaps:/// ldap:/// ldapi:///"
+# Other examples:
+#Environment="SLAPD_URLS=ldap://127.0.0.1/ ldap://10.0.0.1:1389/ cldap:///"
+
+# Specify the kerberos keytab file
+#Environment=KRB5_KTNAME=/etc/openldap/krb5-ldap.keytab
diff --git a/systemd/system/sntp.service.d/00gentoo.conf b/systemd/system/sntp.service.d/00gentoo.conf
new file mode 100644 (file)
index 0000000..75e4f41
--- /dev/null
@@ -0,0 +1,2 @@
+[Service]
+Environment="SERVER=0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"