r1760 - in profiles/LFS/trunk: chapter06 skeleton/etc skeleton/etc/syslog-ng

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Sat Feb 12 09:13:45 PST 2005


Author: kpfleming
Date: 2005-02-12 10:13:44 -0700 (Sat, 12 Feb 2005)
New Revision: 1760

Added:
   profiles/LFS/trunk/skeleton/etc/syslog-ng/
   profiles/LFS/trunk/skeleton/etc/syslog-ng/syslog-ng.conf
Modified:
   profiles/LFS/trunk/chapter06/syslog-ng.xml
Log:
move etc/syslog-ng/syslog-ng.conf to skeleton



Modified: profiles/LFS/trunk/chapter06/syslog-ng.xml
===================================================================
--- profiles/LFS/trunk/chapter06/syslog-ng.xml	2005-02-12 17:11:35 UTC (rev 1759)
+++ profiles/LFS/trunk/chapter06/syslog-ng.xml	2005-02-12 17:13:44 UTC (rev 1760)
@@ -31,84 +31,10 @@
       <mkdir>
         <name>/etc/syslog-ng</name>
       </mkdir>
-      <textdump>
-        <file>/etc/syslog-ng/syslog-ng.conf</file>
-        <content>
-	=# Begin /etc/syslog-ng/syslog-ng.conf 
-	= 
-	=options { sync (0); 
-	= time_reopen (10); 
-	= log_fifo_size (1000); 
-	= long_hostnames(off); 
-	= use_dns (no); 
-	= use_fqdn (no); 
-	= create_dirs (no); 
-	= keep_hostname (yes); 
-	= }; 
-	= 
-	=source src { unix-stream("/dev/log"); 
-	= internal(); 
-	= pipe("/proc/kmsg"); 
-	= }; 
-	= 
-	=destination authlog { file("/var/log/authorize.log"); }; 
-	=destination syslog { file("/var/log/syslog.log"); }; 
-	=destination cron { file("/var/log/cron.log"); }; 
-	=destination daemon { file("/var/log/daemon.log"); }; 
-	=destination kernel { file("/var/log/kernel.log"); }; 
-	=destination lpr { file("/var/log/lpr.log"); }; 
-	=destination user { file("/var/log/user.log"); }; 
-	=destination uucp { file("/var/log/uucp.log"); }; 
-	=destination mail { file("/var/log/mail.log"); }; 
-	=destination news { file("/var/log/news.log"); }; 
-	=destination debug { file("/var/log/debug.log"); }; 
-	=destination messages { file("/var/log/messages.log"); }; 
-	=destination everything { file("/var/log/everything.log"); }; 
-	=destination console { usertty("root"); }; 
-	=destination console_all { file("/dev/tty12"); }; 
-	= 
-	=filter f_auth { facility(auth); }; 
-	=filter f_authpriv { facility(auth, authpriv); }; 
-	=filter f_syslog { not facility(authpriv, mail); }; 
-	=filter f_cron { facility(cron); }; 
-	=filter f_daemon { facility(daemon); }; 
-	=filter f_kernel { facility(kern); }; 
-	=filter f_lpr { facility(lpr); }; 
-	=filter f_mail { facility(mail); }; 
-	=filter f_news { facility(news); }; 
-	=filter f_user { facility(user); }; 
-	=filter f_uucp { facility(cron); }; 
-	=filter f_news { facility(news); }; 
-	=filter f_debug { not facility(auth, authpriv, news, mail); }; 
-	=filter f_messages { level(info..warn) and not facility(auth, authpriv, mail, news); }; 
-	=filter f_everything { level(debug..emerg) and not facility(auth, authpriv); }; 
-	= 
-	=filter f_emergency { level(emerg); }; 
-	=filter f_info { level(info); }; 
-	=filter f_notice { level(notice); }; 
-	=filter f_warn { level(warn); }; 
-	=filter f_crit { level(crit); }; 
-	=filter f_err { level(err); }; 
-	= 
-	=log { source(src); filter(f_authpriv); destination(authlog); }; 
-	=log { source(src); filter(f_syslog); destination(syslog); }; 
-	=log { source(src); filter(f_cron); destination(cron); }; 
-	=log { source(src); filter(f_daemon); destination(daemon); }; 
-	=log { source(src); filter(f_kernel); destination(kernel); }; 
-	=log { source(src); filter(f_lpr); destination(lpr); }; 
-	=log { source(src); filter(f_mail); destination(mail); }; 
-	=log { source(src); filter(f_news); destination(news); }; 
-	=log { source(src); filter(f_user); destination(user); }; 
-	=log { source(src); filter(f_uucp); destination(uucp); }; 
-	=log { source(src); filter(f_debug); destination(debug); }; 
-	=log { source(src); filter(f_messages); destination(messages); }; 
-	=log { source(src); filter(f_emergency); destination(console); }; 
-	=log { source(src); filter(f_everything); destination(everything); }; 
-	=log { source(src); destination(console_all); }; 
-	= 
-	=# END /etc/syslog-ng/syslog-ng.conf
-	</content>
-      </textdump>
+      <copy>
+        <source>&skeleton_dir;/etc/syslog-ng/syslog-ng.conf</source>
+        <destination>/etc/syslog-ng</destination>
+      </copy>
     </stage>
     <stage name="Cleanup">
       <remove>&build_dir;/&syslog-ng-directory;</remove>

Added: profiles/LFS/trunk/skeleton/etc/syslog-ng/syslog-ng.conf
===================================================================
--- profiles/LFS/trunk/skeleton/etc/syslog-ng/syslog-ng.conf	2005-02-12 17:11:35 UTC (rev 1759)
+++ profiles/LFS/trunk/skeleton/etc/syslog-ng/syslog-ng.conf	2005-02-12 17:13:44 UTC (rev 1760)
@@ -0,0 +1,73 @@
+# Begin /etc/syslog-ng/syslog-ng.conf 
+ 
+options { sync (0); 
+ time_reopen (10); 
+ log_fifo_size (1000); 
+ long_hostnames(off); 
+ use_dns (no); 
+ use_fqdn (no); 
+ create_dirs (no); 
+ keep_hostname (yes); 
+ }; 
+ 
+source src { unix-stream("/dev/log"); 
+ internal(); 
+ pipe("/proc/kmsg"); 
+ }; 
+ 
+destination authlog { file("/var/log/authorize.log"); }; 
+destination syslog { file("/var/log/syslog.log"); }; 
+destination cron { file("/var/log/cron.log"); }; 
+destination daemon { file("/var/log/daemon.log"); }; 
+destination kernel { file("/var/log/kernel.log"); }; 
+destination lpr { file("/var/log/lpr.log"); }; 
+destination user { file("/var/log/user.log"); }; 
+destination uucp { file("/var/log/uucp.log"); }; 
+destination mail { file("/var/log/mail.log"); }; 
+destination news { file("/var/log/news.log"); }; 
+destination debug { file("/var/log/debug.log"); }; 
+destination messages { file("/var/log/messages.log"); }; 
+destination everything { file("/var/log/everything.log"); }; 
+destination console { usertty("root"); }; 
+destination console_all { file("/dev/tty12"); }; 
+ 
+filter f_auth { facility(auth); }; 
+filter f_authpriv { facility(auth, authpriv); }; 
+filter f_syslog { not facility(authpriv, mail); }; 
+filter f_cron { facility(cron); }; 
+filter f_daemon { facility(daemon); }; 
+filter f_kernel { facility(kern); }; 
+filter f_lpr { facility(lpr); }; 
+filter f_mail { facility(mail); }; 
+filter f_news { facility(news); }; 
+filter f_user { facility(user); }; 
+filter f_uucp { facility(cron); }; 
+filter f_news { facility(news); }; 
+filter f_debug { not facility(auth, authpriv, news, mail); }; 
+filter f_messages { level(info..warn) and not facility(auth, authpriv, mail, news); }; 
+filter f_everything { level(debug..emerg) and not facility(auth, authpriv); }; 
+ 
+filter f_emergency { level(emerg); }; 
+filter f_info { level(info); }; 
+filter f_notice { level(notice); }; 
+filter f_warn { level(warn); }; 
+filter f_crit { level(crit); }; 
+filter f_err { level(err); }; 
+ 
+log { source(src); filter(f_authpriv); destination(authlog); }; 
+log { source(src); filter(f_syslog); destination(syslog); }; 
+log { source(src); filter(f_cron); destination(cron); }; 
+log { source(src); filter(f_daemon); destination(daemon); }; 
+log { source(src); filter(f_kernel); destination(kernel); }; 
+log { source(src); filter(f_lpr); destination(lpr); }; 
+log { source(src); filter(f_mail); destination(mail); }; 
+log { source(src); filter(f_news); destination(news); }; 
+log { source(src); filter(f_user); destination(user); }; 
+log { source(src); filter(f_uucp); destination(uucp); }; 
+log { source(src); filter(f_debug); destination(debug); }; 
+log { source(src); filter(f_messages); destination(messages); }; 
+log { source(src); filter(f_emergency); destination(console); }; 
+log { source(src); filter(f_everything); destination(everything); }; 
+log { source(src); destination(console_all); }; 
+ 
+# END /etc/syslog-ng/syslog-ng.conf




More information about the alfs-log mailing list