OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Thomas Lotterer
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src openpkg-web          Date:   08-Jul-2003 15:17:54
  Branch: HEAD                             Handle: 2003070814175202

  Added files:
    openpkg-src/openvpn     fsl.openvpn rc.openvpn
  Modified files:
    openpkg-src/openvpn     openvpn.spec
    openpkg-web             news.txt

  Log:
    add fsl support

  Summary:
    Revision    Changes     Path
    1.1         +16 -0      openpkg-src/openvpn/fsl.openvpn
    1.16        +40 -6      openpkg-src/openvpn/openvpn.spec
    1.1         +24 -0      openpkg-src/openvpn/rc.openvpn
    1.5444      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/openvpn/fsl.openvpn
  ============================================================================
  $ cvs diff -u -r0 -r1.1 fsl.openvpn
  --- /dev/null 2003-07-08 15:17:54.000000000 +0200
  +++ fsl.openvpn       2003-07-08 15:17:54.000000000 +0200
  @@ -0,0 +1,16 @@
  +##
  +##  fsl.openvpn -- OSSP fsl configuration
  +##
  +
  +ident (openvpn)/.+ q{
  +    prefix(
  +        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
  +    )
  +    -> {
  +        debug: file(
  +            path="@l_prefix@/var/openvpn/openvpn.log",
  +            append=1, perm=0644
  +        )
  +    }
  +};
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/openvpn/openvpn.spec
  ============================================================================
  $ cvs diff -u -r1.15 -r1.16 openvpn.spec
  --- openpkg-src/openvpn/openvpn.spec  7 Jul 2003 12:48:47 -0000       1.15
  +++ openpkg-src/openvpn/openvpn.spec  8 Jul 2003 13:17:54 -0000       1.16
  @@ -25,7 +25,7 @@
   
   #   package information
   Name:         openvpn
  -Summary:      Vritual Private Network Facility
  +Summary:      Virtual Private Network Facility
   URL:          http://openvpn.sourceforge.net/
   Vendor:       James Yonan
   Packager:     The OpenPKG Project
  @@ -33,18 +33,27 @@
   Group:        Network
   License:      GPL
   Version:      1.4.1
  -Release:      20030707
  +Release:      20030708
  +
  +#   package options
  +%option       with_fsl  yes
   
   #   list of sources
   Source0:      
http://osdn.dl.sourceforge.net/sourceforge/openvpn/openvpn-%{version}.tar.gz
  +Source1:      rc.openvpn
  +Source2:      fsl.openvpn
   
   #   build information
   Prefix:       %{l_prefix}
   BuildRoot:    %{l_buildroot}
  -BuildPreReq:  OpenPKG, openpkg >= 20021122
  -PreReq:       OpenPKG, openpkg >= 20021122
  +BuildPreReq:  OpenPKG, openpkg >= 20030415
  +PreReq:       OpenPKG, openpkg >= 20030415
   BuildPreReq:  openssl, lzo >= 1.08-20021122
   PreReq:       openssl, lzo >= 1.08-20021122
  +%if "%{with_fsl}" == "yes"
  +BuildPreReq:  fsl
  +PreReq:       fsl
  +%endif
   AutoReq:      no
   AutoReqProv:  no
   
  @@ -60,7 +69,8 @@
       CC="%{l_cc}" \
       CFLAGS="%{l_cflags -O}" \
       CPPFLAGS="%{l_cppflags lzo openssl}" \
  -    LDFLAGS="%{l_ldflags}" \
  +    LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
  +    LIBS="%{l_fsl_libs}" \
       ./configure \
           --prefix=%{l_prefix} \
           --with-ssl-headers=%{l_prefix}/include/openssl \
  @@ -71,9 +81,33 @@
   
   %install
       rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/openvpn
       %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
       strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
  -    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +    #   install run-command script
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  +    %{l_shtool} install -c -m 755 \
  +        -e 's;@l_prefix@;%{l_prefix};g' \
  +        -e 's;@l_susr@;%{l_susr};g' \
  +        -e 's;@l_rusr@;%{l_rusr};g' \
  +        -e 's;@l_rgrp@;%{l_rgrp};g' \
  +        %{SOURCE rc.openvpn} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  +
  +    #   install OSSP fsl configuration
  +    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
  +    %{l_shtool} install -c -m 644 \
  +        -e 's;@l_prefix@;%{l_prefix};g' \
  +        %{SOURCE fsl.openvpn} \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
  +
  +    #   determine installation files
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%not %dir %{l_prefix}/etc/fsl' \
  +        '%config %{l_prefix}/etc/fsl/fsl.openvpn'
   
   %files -f files
   
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/openvpn/rc.openvpn
  ============================================================================
  $ cvs diff -u -r0 -r1.1 rc.openvpn
  --- /dev/null 2003-07-08 15:17:54.000000000 +0200
  +++ rc.openvpn        2003-07-08 15:17:54.000000000 +0200
  @@ -0,0 +1,24 @@
  [EMAIL PROTECTED]@/lib/openpkg/bash @l_prefix@/etc/rc
  +##
  +##  rc.openvpn -- Run-Commands
  +##
  +
  +%config
  +    openvpn_enable="yes"
  +    openvpn_log_prolog="true"
  +    openvpn_log_epilog="true"
  +    openvpn_log_numfiles="10"
  +    openvpn_log_minsize="1M"
  +    openvpn_log_complevel="9"
  +
  +%daily -u @l_susr@
  +    opServiceEnabled openvpn || exit 0
  +
  +    #   rotate logfile
  +    shtool rotate -f \
  +        -n${openvpn_log_numfiles} -s${openvpn_log_minsize} -d \
  +        -z${openvpn_log_complevel} [EMAIL PROTECTED]@ [EMAIL PROTECTED]@ -m644 \
  +        -P "${openvpn_log_prolog}" \
  +        -E "${openvpn_log_epilog}" \
  +        @l_prefix@/var/openvpn/openvpn.log
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.5443 -r1.5444 news.txt
  --- openpkg-web/news.txt      8 Jul 2003 12:52:04 -0000       1.5443
  +++ openpkg-web/news.txt      8 Jul 2003 13:17:52 -0000       1.5444
  @@ -1,3 +1,4 @@
  +08-Jul-2003: Upgraded package: P<openvpn-1.4.1-20030708>
   08-Jul-2003: Upgraded package: P<dhcp-agent-0.40-20030708>
   08-Jul-2003: Upgraded package: P<axyftp-0.5.1-20030708>
   08-Jul-2003: Upgraded package: P<gd-2.0.15-20030708>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to