Red Hat Linux System Files
This example files_system_redhat_linux_objects.cfg specifies Red Hat Linux system files, together with their intended permissions and ownerships. This files_system_redhat_linux_objects.cfg file is #include'd by the parent files_system_objects.cfg file.
/////////////////////////////////////////////////////////////////////////////// // // files_system_redhat_linux_objects.cfg // /////////////////////////////////////////////////////////////////////////////// #if redhat #indent /bin/alsaunmute -rwxr-xr-x 755 0 0 root root /bin/unlink -rwxr-xr-x 755 0 0 root root /bin/dbus-daemon -rwxr-xr-x 755 0 0 root root /bin/arch -rwxr-xr-x 755 0 0 root root /bin/gunzip -rwxr-xr-x 755 0 0 root root /bin/usleep -rwxr-xr-x 755 0 0 root root /bin/dmesg -rwxr-xr-x 755 0 0 root root /bin/rm -rwxr-xr-x 755 0 0 root root /bin/doexec -rwxr-xr-x 755 0 0 root root /bin/kill -rwxr-xr-x 755 0 0 root root [...] /var/named/chroot/etc/named.conf -rw-r--r-- 644 0 25 root named /var/named/chroot/etc/named.rfc1912.zones -rw-r----- 640 0 25 root named /var/named/chroot/var/named/named.local -rw-r----- 640 0 25 root named /var/named/chroot/var/named/named.ca -rw-r----- 640 0 25 root named /var/named/chroot/var/named/named.ip6.local -rw-r----- 640 0 25 root named /var/named/chroot/var/named/localhost.zone -rw-r----- 640 0 25 root named /var/named/chroot/var/named/named.broadcast -rw-r----- 640 0 25 root named /var/named/chroot/var/named/named.zero -rw-r----- 640 0 25 root named /var/named/chroot/var/named/localdomain.zone -rw-r----- 640 0 25 root named /var/db/Makefile -rw-r--r-- 644 0 0 root root #unindent #endif // redhat ///////////////////////////////////////////////////////////////////////////////
We recommend that you use the sample mkdirlist.pl Perl script to generate the system file list #include files.
You might prefer, however, to specify system file lists by hand, as in files_system_solaris_objects.cfg, with all manner of elaborate per-machine customizations using PIKT '#if ... #endif (and possibly '#ifdef ... #endifdef) directives. The choice is up to you.
For more examples, see Samples.