#!/usr/bin/perl -w use esmith::Build::CreateLinks qw(:all); templates2events("/etc/e-smith/sql/init/phplistdb", qw/webapps-update bootstrap-console-save/); templates2events("/etc/phplist/config.php", qw/webapps-update bootstrap-console-save/); safe_symlink("/var/qmail/bin/qmail-newu", "root/etc/e-smith/events/webapps-update/S55phplist-qmail-assign"); foreach my $event (qw/webapps-update ipasserelle-update bootstrap-ldap-save/){ event_link("phplist-create-pseudo", "$event", "55"); } safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/phplist/config.php/template-begin"); safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/etc/phplist/config.php/template-end"); safe_symlink("/var/qmail/alias/.qmail-phplistbounces", "root/var/qmail/alias/.qmail-phplistbounces-default"); safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/phplist'); safe_symlink("/var/service/phplist" , 'root/service/phplist'); safe_touch("root/var/service/phplist/down"); safe_symlink("restart", "root/etc/e-smith/events/webapps-update/services2adjust/phplist"); service_link_enhanced('phplist', 'S98', '7'); service_link_enhanced('phplist', 'K12', '6'); service_link_enhanced('phplist', 'K12', '0'); safe_touch("root/var/lib/phplist/bounces.mbox");