head	1.22;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.10
	OPENPKG_E1_MP:1.10
	OPENPKG_E1_MP_2_STABLE:1.6.2.2
	OPENPKG_E1_FP:1.6.2.2
	OPENPKG_2_STABLE_MP:1.6
	OPENPKG_2_STABLE_20061018:1.6.2.2
	OPENPKG_2_STABLE:1.6.0.2;
locks; strict;
comment	@-- @;


1.22
date	2009.04.18.13.08.42;	author rse;	state Exp;
branches;
next	1.21;
commitid	4pHXU27WTIGCZuKt;

1.21
date	2008.04.01.19.24.57;	author rse;	state Exp;
branches;
next	1.20;
commitid	U3umfJwA8LpPorXs;

1.20
date	2008.03.29.08.52.35;	author rse;	state Exp;
branches;
next	1.19;
commitid	toyykXfpyq6SZZWs;

1.19
date	2008.01.01.14.50.51;	author rse;	state Exp;
branches;
next	1.18;
commitid	B8esaHJHoduuKILs;

1.18
date	2007.11.18.01.59.27;	author cs;	state Exp;
branches;
next	1.17;
commitid	xHAmi200KxwcXZFs;

1.17
date	2007.09.01.01.18.07;	author cs;	state Exp;
branches;
next	1.16;
commitid	3Yl2xAzlfESreYvs;

1.16
date	2007.08.28.08.25.12;	author rse;	state Exp;
branches;
next	1.15;
commitid	Dq4IYSGPXytXIuvs;

1.15
date	2007.08.07.21.21.55;	author cs;	state Exp;
branches;
next	1.14;
commitid	s4Yt6JjPRkTgHRss;

1.14
date	2007.08.04.12.15.22;	author rse;	state Exp;
branches;
next	1.13;
commitid	tVPWs3U0sEtKLqss;

1.13
date	2007.06.07.14.11.34;	author cs;	state Exp;
branches;
next	1.12;
commitid	jDdXYRrr0OschZks;

1.12
date	2007.03.13.07.10.55;	author rse;	state Exp;
branches;
next	1.11;
commitid	1ADMcCzcO4GhIT9s;

1.11
date	2007.02.05.07.55.40;	author rse;	state Exp;
branches;
next	1.10;
commitid	6tfAALUkYCMn7h5s;

1.10
date	2007.01.01.17.36.36;	author rse;	state Exp;
branches;
next	1.9;
commitid	BicZD6VUl7GuqP0s;

1.9
date	2006.11.24.17.11.32;	author rse;	state Exp;
branches;
next	1.8;
commitid	MBRsF8a8iWUyxWVr;

1.8
date	2006.11.05.08.24.06;	author rse;	state Exp;
branches;
next	1.7;
commitid	mSMRgmB8PQnuesTr;

1.7
date	2006.10.29.15.44.20;	author rse;	state Exp;
branches;
next	1.6;
commitid	IUIUMVXYexAsTASr;

1.6
date	2006.10.13.17.26.49;	author thl;	state Exp;
branches
	1.6.2.1;
next	1.5;
commitid	q5GSxzsSDX29XxQr;

1.5
date	2006.10.12.08.17.11;	author rse;	state Exp;
branches;
next	1.4;
commitid	M0gkADxSeQfWXmQr;

1.4
date	2006.09.24.13.43.28;	author rse;	state Exp;
branches;
next	1.3;
commitid	9iFNATQbf4HIl5Or;

1.3
date	2006.09.02.08.18.57;	author rse;	state Exp;
branches;
next	1.2;
commitid	lsuKjMDiiDeggeLr;

1.2
date	2006.08.25.19.15.56;	author rse;	state Exp;
branches;
next	1.1;
commitid	Tvsj1UyQ8rQ89gKr;

1.1
date	2006.05.23.13.34.02;	author rse;	state Exp;
branches;
next	;
commitid	ZZQxxvArDQLCh9yr;

1.6.2.1
date	2006.10.13.17.26.49;	author rse;	state dead;
branches;
next	1.6.2.2;
commitid	iZxwRSmmWscPXUQr;

1.6.2.2
date	2006.10.16.14.47.56;	author rse;	state Exp;
branches;
next	;
commitid	iZxwRSmmWscPXUQr;


desc
@@


1.22
log
@bump years in copyright messages
@
text
@##
##  arpalert.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
##
##  Permission to use, copy, modify, and distribute this software for
##  any purpose with or without fee is hereby granted, provided that
##  the above copyright notice and this permission notice appear in all
##  copies.
##
##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
##  SUCH DAMAGE.
##

#   package information
Name:         arpalert
Summary:      ARP Network Monitoring & Alerting
URL:          http://www.arpalert.org/
Vendor:       Thierry FOURNIER
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        Mapping
License:      GPL
Version:      2.0.11
Release:      20080401

#   list of sources
Source0:      http://www.arpalert.org/src/arpalert-%{version}.tar.gz
Source1:      arpalert.conf
Source2:      rc.arpalert
Patch0:       arpalert.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20060823, gcc, make
PreReq:       OpenPKG, openpkg >= 20060823
BuildPreReq:  libpcap
PreReq:       libpcap
AutoReq:      no
AutoReqProv:  no

%description
    ARPAlert listens on a network interface (without using 'promiscuous'
    mode) and catches all requests for MAC address to IP conversion. It
    then compares the MAC addresses it detected with a pre-configured
    list of authorized MAC addresses. If the MAC is not in list,
    ARPAlert launches a pre-defined user script with the MAC address and
    IP address as parameters.

%track
    prog arpalert = {
        version   = %{version}
        url       = http://www.arpalert.org/index.php?page=download
        regex     = arpalert-(__VER__)\.tar\.gz
    }

%prep
    %setup -q
    %patch -p0
    %{l_shtool} subst \
        -e 's;\(@@localstatedir@@/\)lib/arpalert;\1db;' \
        Makefile.in \
        install.sh.in

%build
    CC="%{l_cc}" \
    CFLAGS="%{l_cflags -O}" \
    CPPFLAGS="%{l_cppflags}" \
    LDFLAGS="%{l_ldflags}" \
    ./configure \
        --prefix=%{l_prefix} \
        --mandir=%{l_prefix}/man \
        --localstatedir=%{l_prefix}/var/arpalert
    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT
    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE arpalert.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/arpalert/
    %{l_shtool} install -c -m 644 \
        /dev/null $RPM_BUILD_ROOT%{l_prefix}/etc/arpalert/arpalert.authreq
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
    %{l_shtool} install -c -m 755 %{l_value -s -a} \
        %{SOURCE rc.arpalert} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
        %{l_files_std} \
        '%config %{l_prefix}/etc/arpalert/*' \
        '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/arpalert/*'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

%post
    #   after upgrade, restart service
    [ $1 -eq 2 ] || exit 0
    eval `%{l_rc} arpalert status 2>/dev/null`
    [ ".$arpalert_active" = .yes ] && %{l_rc} arpalert restart
    exit 0

%preun
    #   before erase, stop service and remove log files
    [ $1 -eq 0 ] || exit 0
    %{l_rc} arpalert stop 2>/dev/null
    rm -f $RPM_INSTALL_PREFIX/var/arpalert/run/* >/dev/null 2>&1 || true
    rm -f $RPM_INSTALL_PREFIX/var/arpalert/log/* >/dev/null 2>&1 || true
    exit 0

@


1.21
log
@upgrading package: arpalert 2.0.10 -> 2.0.11
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.20
log
@upgrading package: arpalert 2.0.9 -> 2.0.10
@
text
@d34 2
a35 2
Version:      2.0.10
Release:      20080329
@


1.19
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d34 2
a35 2
Version:      2.0.9
Release:      20080101
@


1.18
log
@upgrading package: arpalert 2.0.8 -> 2.0.9
@
text
@d3 1
a3 2
##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
d35 1
a35 1
Release:      20071118
@


1.17
log
@fix paths
@
text
@d35 2
a36 2
Version:      2.0.8
Release:      20070901
@


1.16
log
@upgrading package: arpalert 2.0.7 -> 2.0.8
@
text
@d36 1
a36 1
Release:      20070828
d72 4
d84 2
a85 1
        --mandir=%{l_prefix}/man
@


1.15
log
@fix path of and man pages
@
text
@d35 2
a36 2
Version:      2.0.7
Release:      20070807
@


1.14
log
@upgrading package: arpalert 2.0.6 -> 2.0.7
@
text
@d36 1
a36 1
Release:      20070804
d79 2
a80 1
        --prefix=%{l_prefix}
@


1.13
log
@upgrading package: arpalert 2.0.5 -> 2.0.6
@
text
@d35 2
a36 2
Version:      2.0.6
Release:      20070607
@


1.12
log
@upgrading package: arpalert 2.0.4 -> 2.0.5
@
text
@d35 2
a36 2
Version:      2.0.5
Release:      20070313
@


1.11
log
@upgrading package: arpalert 2.0.3 -> 2.0.4
@
text
@d35 2
a36 2
Version:      2.0.4
Release:      20070205
@


1.10
log
@Welcome Year 2007!
@
text
@d35 2
a36 2
Version:      2.0.3
Release:      20061124
@


1.9
log
@upgrading package: arpalert 2.0.2 -> 2.0.3
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
@


1.8
log
@upgrading package: arpalert 2.0.1 -> 2.0.2
@
text
@d35 2
a36 2
Version:      2.0.2
Release:      20061105
@


1.7
log
@upgrading package: arpalert 1.0.3 -> 2.0.1
@
text
@d35 2
a36 2
Version:      2.0.1
Release:      20061029
@


1.6
log
@new world order for "Packager" and "Distribution" headers
@
text
@d35 2
a36 2
Version:      1.0.3
Release:      20061013
d39 1
a39 1
Source0:      http://perso.numericable.fr/~fourthie/arpalert/src/arpalert-%{version}.tar.gz
d65 1
a65 1
        url       = http://perso.numericable.fr/~fourthie/arpalert/index.php?page=download
@


1.6.2.1
log
@file arpalert.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:47:56 +0000
@
text
@d1 118
@


1.6.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 118
##
##  arpalert.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
##
##  Permission to use, copy, modify, and distribute this software for
##  any purpose with or without fee is hereby granted, provided that
##  the above copyright notice and this permission notice appear in all
##  copies.
##
##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
##  SUCH DAMAGE.
##

#   package information
Name:         arpalert
Summary:      ARP Network Monitoring & Alerting
URL:          http://www.arpalert.org/
Vendor:       Thierry FOURNIER
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        Mapping
License:      GPL
Version:      1.0.3
Release:      2.20061018

#   list of sources
Source0:      http://perso.numericable.fr/~fourthie/arpalert/src/arpalert-%{version}.tar.gz
Source1:      arpalert.conf
Source2:      rc.arpalert
Patch0:       arpalert.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 2.20061018, gcc, make
PreReq:       OpenPKG, openpkg >= 2.20061018
BuildPreReq:  libpcap
PreReq:       libpcap
AutoReq:      no
AutoReqProv:  no

%description
    ARPAlert listens on a network interface (without using 'promiscuous'
    mode) and catches all requests for MAC address to IP conversion. It
    then compares the MAC addresses it detected with a pre-configured
    list of authorized MAC addresses. If the MAC is not in list,
    ARPAlert launches a pre-defined user script with the MAC address and
    IP address as parameters.

%track
    prog arpalert = {
        version   = %{version}
        url       = http://perso.numericable.fr/~fourthie/arpalert/index.php?page=download
        regex     = arpalert-(__VER__)\.tar\.gz
    }

%prep
    %setup -q
    %patch -p0

%build
    CC="%{l_cc}" \
    CFLAGS="%{l_cflags -O}" \
    CPPFLAGS="%{l_cppflags}" \
    LDFLAGS="%{l_ldflags}" \
    ./configure \
        --prefix=%{l_prefix}
    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT
    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE arpalert.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/arpalert/
    %{l_shtool} install -c -m 644 \
        /dev/null $RPM_BUILD_ROOT%{l_prefix}/etc/arpalert/arpalert.authreq
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
    %{l_shtool} install -c -m 755 %{l_value -s -a} \
        %{SOURCE rc.arpalert} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
        %{l_files_std} \
        '%config %{l_prefix}/etc/arpalert/*' \
        '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/arpalert/*'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

%post
    #   after upgrade, restart service
    [ $1 -eq 2 ] || exit 0
    eval `%{l_rc} arpalert status 2>/dev/null`
    [ ".$arpalert_active" = .yes ] && %{l_rc} arpalert restart
    exit 0

%preun
    #   before erase, stop service and remove log files
    [ $1 -eq 0 ] || exit 0
    %{l_rc} arpalert stop 2>/dev/null
    rm -f $RPM_INSTALL_PREFIX/var/arpalert/run/* >/dev/null 2>&1 || true
    rm -f $RPM_INSTALL_PREFIX/var/arpalert/log/* >/dev/null 2>&1 || true
    exit 0

@


1.5
log
@fix building against libpcap
@
text
@d30 2
a31 2
Packager:     OpenPKG
Distribution: OpenPKG
d36 1
a36 1
Release:      20061012
@


1.4
log
@adjust Group header
@
text
@d36 1
a36 1
Release:      20060924
@


1.3
log
@upgrading package: arpalert 1.0.2 -> 1.0.3
@
text
@d33 1
a33 1
Group:        Network
d36 1
a36 1
Release:      20060902
@


1.2
log
@replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality
@
text
@d35 2
a36 2
Version:      1.0.2
Release:      20060825
@


1.1
log
@new package: arpalert 1.0.2 (ARP Network Monitoring & Alerting)
@
text
@d36 1
a36 1
Release:      20060523
d47 2
a48 2
BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc, make
PreReq:       OpenPKG, openpkg >= 20040130
@

