SuSE Linux System Files

This example files_system_suse_linux_objects.cfg specifies SuSE Linux system files, together with their desired permissions and ownerships.  Note how, by the use of the '#if suse93' and #elsif suse90' preprocessor directives, we can customize the system files set based on the SuSE Linux version number.  This files_system_suse_linux_objects.cfg file is #include'd by the parent files_system_objects.cfg file.

///////////////////////////////////////////////////////////////////////////////
//
// files_system_suse_linux_objects.cfg
//
///////////////////////////////////////////////////////////////////////////////

#if suse

#  if suse93

#indent

/bin/dd -rwxr-xr-x 755 0 0 root root
/bin/cp -rwxr-xr-x 755 0 0 root root
/bin/df -rwxr-xr-x 755 0 0 root root
/bin/ed -rwxr-xr-x 755 0 0 root root
/bin/ln -rwxr-xr-x 755 0 0 root root
/bin/ls -rwxr-xr-x 755 0 0 root root
/bin/mv -rwxr-xr-x 755 0 0 root root
/bin/ps -rwxr-xr-x 755 0 0 root root
/bin/rm -rwxr-xr-x 755 0 0 root root
/bin/su -rwsr-xr-x 4755 0 0 root root
[...]
/usr/include/EST_cmd_line.h -rw-r--r-- 644 0 0 root root
/usr/include/gc_local_alloc.h -rw-r--r-- 644 0 0 root root
/usr/include/cdda_interface.h -rw-r--r-- 644 0 0 root root
/usr/include/EST_ServiceTable.h -rw-r--r-- 644 0 0 root root
/usr/include/regexp.h -rw-r--r-- 644 0 0 root root
/usr/include/wbxml_buffers.h -rw-r--r-- 644 0 0 root root
/usr/include/scdb_util.h -rw-r--r-- 644 0 0 root root
/usr/include/memory.h -rw-r--r-- 644 0 0 root root
/usr/include/EST_dynamic_model.h -rw-r--r-- 644 0 0 root root
/usr/include/nstring.h -rw-r--r-- 644 0 0 root root

#unindent

#  elsif suse90

[much the same, but with some differences]

#  endif  // suse90

#endif  // suse

///////////////////////////////////////////////////////////////////////////////

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.

 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
unwanted files
Pikt script