Browse Source

* imported pkg_*.conf from 0.1

legacy/multilib
Alejandro Mery 19 years ago
parent
commit
e66299e0d5
11 changed files with 310 additions and 0 deletions
  1. +40
    -0
      pkg_apache.conf
  2. +34
    -0
      pkg_firefox.conf
  3. +16
    -0
      pkg_mod_mono.conf
  4. +29
    -0
      pkg_mod_python.conf
  5. +25
    -0
      pkg_mod_security.conf
  6. +28
    -0
      pkg_openssh.conf
  7. +29
    -0
      pkg_php.conf
  8. +22
    -0
      pkg_qmail.conf
  9. +20
    -0
      pkg_samba.conf
  10. +31
    -0
      pkg_subversion.conf
  11. +36
    -0
      pkg_thunderbird.conf

+ 40
- 0
pkg_apache.conf

@ -0,0 +1,40 @@
#!/bin/sh
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/mnemosyne/pkg_apache.conf
# Copyright (C) 2004 - 2005 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program 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; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
if [ "${SDECFG_PKG_APACHE_DOCROOT:0:1}" == "/" ]; then
docroot=$( echo "$SDECFG_PKG_APACHE_DOCROOT" | sed -e 's,/\([^/]*\).*,\1,g' )
if [ -z "$( echo $flistroot | tr ' ' '\n' | grep -e "^$docroot\$" )" ]; then
var_append flistroot ' ' $docroot
mkdir -p "$xroot/$SDECFG_PKG_APACHE_DOCROOT"
# ln -s "$xroot/$SDECFG_PKG_APACHE_DOCROOT" "$SDECFG_PKG_APACHE_DOCROOT"
fi
fi
hook_add postmake 5 'mnemosyne_adapt_apache'
mnemosyne_adapt_apache() {
mkdir -vp $sysconfdir/{conf,hosts}.d
if ! grep -q "Include $sysconfdir/conf.d/\*.conf" $sysconfdir/httpd.conf; then
echo "Include $sysconfdir/conf.d/*.conf" \
>> $sysconfdir/httpd.conf
fi
cat <<-EOT > $sysconfdir/conf.d/vhost.conf-dist
NameVirtualHost *:80
Include $sysconfdir/hosts.d/*.conf
EOT
}
. $confdir/apache.conf

+ 34
- 0
pkg_firefox.conf

@ -0,0 +1,34 @@
#!/bin/sh
. $confdir/$pkg.conf
hook_add postmake 5 'mnemosyne_firefox_openurl'
hook_add postmake 6 'mnemosyne_firefox_prefs'
mnemosyne_firefox_openurl() {
cat <<-EOT > $bindir/$pkg-openurl.sh
#!/bin/sh
export MOZILLA_FIVE_HOME="$libdir/$pkg-$ver"
url="\$1"
if [ -z "\$url" ]; then
url="about:blank"
fi
if \$MOZILLA_FIVE_HOME/mozilla-xremote-client -a firefox 'ping()'; then
exec \$MOZILLA_FIVE_HOME/mozilla-xremote-client -a firefox openURL\("\$url"\)
else
exec $bindir/firefox "\$url"
fi
EOT
chmod +x $bindir/$pkg-openurl.sh
}
mnemosyne_firefox_prefs() {
if pkginstalled thunderbird; then
cat<<-EOT >> $libdir/${pkg}-${ver}/defaults/pref/firefox.js
pref("network.protocol-handler.app.mailto", "thunderbird-mailto.sh");
EOT
fi
}

+ 16
- 0
pkg_mod_mono.conf

@ -0,0 +1,16 @@
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/mnemosyne/pkg_mod_mono.conf
# Copyright (C) 2004 - 2005 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program 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; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
pkgprefix -t apache
var_append makeinstopt ' ' "modmonoconfdir=$( pkgprefix sysconfdir apache)/conf.d"

+ 29
- 0
pkg_mod_python.conf

@ -0,0 +1,29 @@
#!/bin/sh
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/mnemosyne/pkg_php.conf
# Copyright (C) 2004 - 2005 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program 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; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
prefix_auto=0
pkgprefix -t apache
prefix=`pkgprefix apache`
set_confopt
hook_add postmake 5 'mnemosyne_modpython_addconf'
mnemosyne_modpython_addconf() {
mkdir -p $sysconfdir/conf.d
cat <<-EOT > $sysconfdir/conf.d/python.conf
LoadModule python_module modules/mod_python.so
EOT
}
[ ! -f $confdir/$pkg.conf ] || . $confdir/$pkg.conf

+ 25
- 0
pkg_mod_security.conf

@ -0,0 +1,25 @@
#!/bin/sh
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/mnemosyne/pkg_mod_security.conf
# Copyright (C) 2004 - 2005 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program 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; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
hook_add postmake 5 'modsec_install_conf'
modsec_install_conf() {
cat <<-EOT > $sysconfdir/conf.d/mod_security.conf-dist
LoadModule security_module modules/mod_security.so
EOT
sed -e "s,logs/,$localstatedir/logs/,g" \
httpd.conf.example-minimal \
>> $sysconfdir/conf.d/mod_security.conf-dist
}
. $confdir/$pkg.conf

+ 28
- 0
pkg_openssh.conf

@ -0,0 +1,28 @@
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/mnemosyne/pkg_openssh.conf
# Copyright (C) 2004 - 2005 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program 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; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
pkg_openssh_authkeys() {
local adminkeys=$base/config/$config/authorized_keys
local sshdir=$xroot/root/.ssh
if [ -f $adminkeys ]; then
mkdir -p $sshdir
chmod 700 $sshdir
cp $adminkeys $sshdir/authorized_keys
chmod 600 $sshdir/authorized_keys
add_flist $sshdir $sshdir/authorized_keys
fi
}
hook_add postmake 5 'pkg_openssh_authkeys'
. $confdir/$pkg.conf

+ 29
- 0
pkg_php.conf

@ -0,0 +1,29 @@
#!/bin/sh
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/mnemosyne/pkg_php.conf
# Copyright (C) 2004 - 2005 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program 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; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
prefix_auto=0
prefix='opt/apache'
set_confopt
hook_add postmake 5 'mnemosyne_php_addconf'
mnemosyne_php_addconf() {
mkdir -p $sysconfdir/conf.d
cat <<-EOT > $sysconfdir/conf.d/php.conf
LoadModule php5_module modules/libphp5.so
AddHandler application/x-httpd-php .php
EOT
}
. $confdir/php.conf

+ 22
- 0
pkg_qmail.conf

@ -0,0 +1,22 @@
#!/bin/sh
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/mnemosyne/pkg_qmail.conf
# Copyright (C) 2004 - 2005 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program 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; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
prefix_auto=0; prefix=opt/qmail
set_confopt
controldir="${sysconfdir#$root/}/control"
queuedir="var/spool/qmail"
logdir="var/opt/qmail/log"
. $confdir/qmail.conf

+ 20
- 0
pkg_samba.conf

@ -0,0 +1,20 @@
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/mnemosyne/pkg_samba.conf
# Copyright (C) 2004 - 2005 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program 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; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
if pkginstalled openldap; then
pkgprefix -t openldap
hook_add postmake 5 'cp -v examples/LDAP/samba.schema $( pkgprefix sysconfdir openldap )/schema/'
hook_add postmake 5 'cp -v examples/LDAP/README $( pkgprefix sysconfdir openldap )/samba.README'
fi
. $confdir/$pkg.conf

+ 31
- 0
pkg_subversion.conf

@ -0,0 +1,31 @@
#!/bin/sh
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/mnemosyne/pkg_subversion.conf
# Copyright (C) 2004 - 2005 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program 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; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
if pkginstalled apache; then
pkgprefix -t apache
hook_add postmake 5 'mnemosyne_apache_addconf'
mnemosyne_apache_addconf() {
local sysconfdir=`pkgprefix sysconfdir apache`
mkdir -p $sysconfdir/conf.d
cat <<-EOT > $sysconfdir/conf.d/svn.conf-dist
LoadModule dav_svn_module modules/mod_dav_svn.so
#LoadModule authz_svn_module modules/mod_authz_svn.so
EOT
}
fi
. $confdir/$pkg.conf

+ 36
- 0
pkg_thunderbird.conf

@ -0,0 +1,36 @@
#!/bin/sh
. $confdir/thunderbird.conf
hook_add postmake 6 'mnemosyne_thunderbird_mailto'
hook_add postmake 6 'mnemosyne_thunderbird_prefs'
mnemosyne_thunderbird_mailto() {
cat <<-EOT > $bindir/$pkg-mailto.sh
#!/bin/bash
export MOZILLA_FIVE_HOME="$libdir/$pkg-$ver"
mailto="\$1"
if [[ \$mailto == mailto:* ]]; then
mailto=\${mailto#mailto:}
fi
if \$MOZILLA_FIVE_HOME/mozilla-xremote-client -a thunderbird 'ping()'; then
exec \$MOZILLA_FIVE_HOME/mozilla-xremote-client -a thunderbird mailto\("\$mailto"\)
else
exec $bindir/thunderbird "mailto:\$mailto"
fi
EOT
chmod +x $bindir/$pkg-mailto.sh
}
mnemosyne_thunderbird_prefs() {
if pkginstalled firefox; then
cat<<-EOT >> $libdir/${pkg}-${ver}/defaults/pref/all-thunderbird.js
pref("network.protocol-handler.app.http", "firefox-openurl.sh");
pref("network.protocol-handler.app.https", "firefox-openurl.sh");
pref("network.protocol-handler.app.ftp", "firefox-openurl.sh");
EOT
fi
}

Loading…
Cancel
Save