Path Macros
The macros in the sample path_macros.cfg configuration file below are for specifying directory and file paths. You would use these to indicate the location of, for example, the mail and printing directories, mail alias files, NIS files and directories, paths to log files, etc.
/////////////////////////////////////////////////////////////////////////////// // path macros - directory & file paths /////////////////////////////////////////////////////////////////////////////// // standard dir macros maildir #if solaris /var/mail #elif debian /var/mail #else /var/spool/mail #endif mqueue /var/spool/mqueue #if firenze crontabs /var/spool/cron #else crontabs /var/spool/cron/crontabs #endif #if solaris printspool /var/spool/lp/requests /var/spool/print /usr/lp/tmp /var/lp/tmp #endif /////////////////////////////////////////////////////////////////////////////// // local dir macros #if mailmanserver mailmandir /opt/mailman mmdir =mailmandir mailmanbindir =mmdir/bin mmbindir =mailmanbindir mailmanlistdir =mmdir/lists mmlistdir =mailmanlistdir #endif // mailmanserver usrlocal #if solaris /opt/local #elif linux /usr/local #else // all the other oses we don't directly support /usr/local #endif preciousdir /usr/local/etc/precious /////////////////////////////////////////////////////////////////////////////// // standard filepath macros aliases #if solaris /etc/mail/aliases #elif linux /etc/aliases #endif dumpdates /etc/dumpdates #if solaris auto_direct /etc/auto_direct exports /etc/dfs/dfstab fstab /etc/vfstab #endif #if linux auto_direct /etc/auto.direct // ??? exports /etc/exports fstab /etc/fstab #endif passwd /etc/passwd group /etc/group shadow /etc/shadow /////////////////////////////////////////////////////////////////////////////// // local filepath macros nisdir /etc/NIS nisbakdir /usr/local/etc/precious/nis nispasswd =nisdir/passwd nisgroup =nisdir/group nisnetgroup =nisdir/netgroup nisaliases =nisdir/aliases nisautohome =nisdir/auto.home nishosts =nisdir/hosts /////////////////////////////////////////////////////////////////////////////// // logpath macros #include [/pikt/bin/pikts < /pikt/lib/configs/macros/logs_system_macros.cfg | awk '/^#/ {print; next}; /^[A-Z]/ {print " "; next}; {print $1 " " $2}'] awk '/^#/ {print; next}; /^[A-Z]/ {print " "; next}; {print $1 " " $2}'] #include [/pikt/bin/pikts < /pikt/lib/configs/macros/logs_local_macros.cfg | awk '/^#/ {print; next}; /^[A-Z]/ {print " "; next}; {print $1 " " $2}'] ///////////////////////////////////////////////////////////////////////////////
For more examples, see Samples.