This is the current state of the changes to these files (from the 4.5.1
release notes):

1)  Previously, the install scripts included in the Shorewall packages
    were very restrictive. They could either be run to install directly
    onto the system in a distribution-dependent way, or they could
    install into a directory in a distribution-independent way. This
    limited their usefullness to packagers.

    Beginning with this release, the install scripts handle the install
    system and the target system independently. When running an
    installer, the following environmental variables can be set:

    a)  HOST - Describes the system where the installer is
        running. Accepted values are:

            CYGWIN    - Cygwin running under a Microsoft OS
            MAC       - OS X
            DEBIAN    - Debian
            REDHAT    - Fedora,RHEL,Centos,Foobar,etc.
            SLACKWARE - Slackware
            ARCHLINUX - Arch Linux
            LINUX     - Generic Linux
        
        If HOST is not set, then the installer uses its existing
        algorithm for detecting the current OS and distribution.

    b)  TARGET - Describes the system where the installed package
        will run.

        - For Shorewall and Shorewall6, the possible values are
          the same as for HOST.

        - If TARGET is not set, the value of HOST (through setting or
          detection) is used.

        - For Shorewall-lite and Shorewall6-lite, the possible choices
          are DEBIAN, REDHAT, SUSE, SLACKWARE, ARCHLINUX and
          LINUX.

        - For Shorewall-init, the possible choices are DEBIAN,
          REDHAT, and SUSE.

    c)  INITDIR - Gives the absolute path name of the directory
        containing the init scripts.

    The choice of HOST and TARGET follow the naming of similar macros
    in rpm.

    As part of these changes, LIBEXEC and PERLLIB must now hold an
    absolute pathname. So, for example, if you have been using

        LIBEXEC=libexec

    you will need to change to

        LIBEXEC=/usr/libexec

2)  The .spec files included with each package have undergone
    considerable revision.

    When running the package's ./install.sh script:

    a) The setting for LIBEXEC is taken from the standard '_libexecdir'
       rpm macro.

    b) The setting for PERLLIB is taken from the standard
       'perl_sitelib' rpm macro.

    c) The setting for INITDIR is taken from the new
       'shorewall_initdir' rpm macro.

    d) The setting for TARGET is taken from the new
       'shorewall_target' rpm macro.

    In all cases, the %file specifications now use the above rpm
    macros where appropriate    

    The rpms included with Shorewall are build with these
    definitions in $HOME/.rpmmacros:

        %perl_sitelib           /usr/share/shorewall
        %shorewall_initdir      /etc/init.d
        %shorewall_target       SUSE

    From /usr/lib/rpm/macros comes this effective setting:

        %_libexecdir            /usr/libexec

    The setting of %perl_sitelib is chosen for portability, since there
    seems to be no common location for site-specific Perl modules among
    the rpm-based distributions.

Comments are welcome,

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to