Skip to content

Commit 6463185

Browse files
author
Adrian Ban
committed
ipset-persistent-v1.0.0
0 parents  commit 6463185

25 files changed

Lines changed: 472 additions & 0 deletions

Makefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/make -f
2+
3+
# This file is part of ipset-persistent
4+
# Copyright (C) 2018 Adrian Ban
5+
#
6+
# This program is free software; you can redistribute it and/or
7+
# modify it under the terms of the GNU General Public License
8+
# as published by the Free Software Foundation, either version 3
9+
# of the License, or (at your option) any later version.
10+
11+
PREFIX=/
12+
DEST=$(DESTDIR)$(PREFIX)
13+
14+
all:
15+
16+
clean:
17+
18+
install:
19+
install -d $(DEST)/usr/sbin
20+
install -d $(DEST)/usr/share/netfilter-persistent
21+
install -d $(DEST)/usr/share/netfilter-persistent/plugins.d
22+
# Manual
23+
install -d $(DEST)/usr/share/man/man8
24+
install --mode=644 ipset-persistent.8 $(DEST)/usr/share/man/man8
25+
26+
install-plugins:
27+
# Plugins
28+
install plugins/* $(DEST)/usr/share/netfilter-persistent/plugins.d

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ipset-persistent
2+
3+
ipset-persistent plugin
4+
------------------------------------
5+
6+
ipset-persistent is a plugin for netfilter-persistent to load, save and
7+
flush the ipset rules.
8+

debian/README

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ipset-persistent plugin
2+
------------------------------------
3+
4+
ipset-persistent is a plugin for netfilter-persistent to load, save and
5+
flush the ipset rules.
6+
7+
-- Adrian Ban <adrian@abtelecom.ro> Tue, 03 Jul 2018 10:52:17 +0200

debian/README.source

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
ipset-persistent is a plugin for netfilter-persistent for loading, saving and flushing
3+
ipset rules.
4+
5+
-- Adrian Ban <adrian@abtelecom.ro> Tue, 03 Jul 2018 10:52:17 +0200

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
iptables-persistent (1.0.0) unstable; urgency=medium
2+
3+
* Plugin for ipset to be used with netfilter-persistent for
4+
loading, saving, flushing ipset rules
5+
6+
-- Adrian Ban <adrian@abtelecom.ro> Tue, 3 Jul 2018 10:18:44 +0200

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

debian/control

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Source: ipset-persistent
2+
Section: admin
3+
Priority: optional
4+
Maintainer: Adrian Ban <adrian@abtelecom.ro>
5+
Build-Depends: debhelper (>= 7.0.50~), dh-systemd, po-debconf
6+
Standards-Version: 3.9.6
7+
Vcs-Browser: https://github.com/AdrianBan/ipset-persistent/
8+
Vcs-Git: git://github.com/AdrianBan/ipset-persistent
9+
10+
Package: ipset-persistent
11+
Architecture: all
12+
Depends: lsb-base, ${misc:Depends}, netfilter-persistent
13+
Suggests: iptables-persistent
14+
Description: boot-time loader for ipset configuration
15+
This package provides a set of plugins for nettfilter for load, flush
16+
and save a running ipset configuration.
17+
18+
Package: ipset-persistent
19+
Architecture: all
20+
Depends: netfilter-persistent (= ${source:Version}), ipset, ${misc:Depends}
21+
Description: boot-time loader for ipset plugin
22+
ipset-persistent is a loader for ipset plugin for netfilter-persistent
23+
.
24+
This package contains the ipset plugin.

debian/copyright

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: iptables-persistent
3+
Upstream-Contact: Jonathan Wiltshire <jmw@debian.org>
4+
5+
Files: *
6+
Copyright: © 2009, Simon Richter <sjr@debian.org>
7+
© 2010, Chris Silva <racerx@makeworld.com>
8+
© 2010, Jonathan Wiltshire <jmw@debian.org>
9+
License: GPL-3
10+
This program is free software: you can redistribute it and/or modify
11+
it under the terms of the GNU General Public License as published by
12+
the Free Software Foundation, either version 3 of the License, or
13+
(at your option) any later version.
14+
.
15+
This package is distributed in the hope that it will be useful,
16+
but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
GNU General Public License for more details.
19+
.
20+
You should have received a copy of the GNU General Public License
21+
along with this program. If not, see <http://www.gnu.org/licenses/>.
22+
.
23+
On Debian systems, the complete text of the GNU General
24+
Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.

debian/gbp.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[DEFAULT]
2+
compression = bzip2
3+
4+
[git-dch]
5+
meta = true
6+
id-length = 6

debian/ipset-persistent.config

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
# Source debconf library
6+
. /usr/share/debconf/confmodule
7+
8+
db_get ipset-persistent/autosave_done || true
9+
if [ "x$RET" != "xtrue" ]; then
10+
# Save ipset rules?
11+
db_input high ipset-persistent/autosave || true
12+
db_go
13+
fi

0 commit comments

Comments
 (0)