Skip to content

Commit a14d483

Browse files
authored
v0.9.18
2 parents bc57133 + ef56f0b commit a14d483

20 files changed

+101
-57
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020-2021 kristuff
3+
Copyright (c) 2020-2022 kristuff
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Features
1818
- Clear IP address request (remove your own reports) ****
1919
- Auto cleaning report comments from sensitive data (email, custom ip/domain names list) ****
2020
- Output: colored reports, JSON or plaintext ****
21+
- Define timeout for cURL internal requests (in config or from command line) ****
2122
- Easy Fail2ban integration ****
2223

2324
Requirements
@@ -64,7 +65,7 @@ License
6465

6566
The MIT License (MIT)
6667

67-
Copyright (c) 2020-2021 Kristuff
68+
Copyright (c) 2020-2022 Kristuff
6869

6970
Permission is hereby granted, free of charge, to any person obtaining a copy
7071
of this software and associated documentation files (the "Software"), to deal

bin/abuseipdb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* For the full copyright and license information, please view the LICENSE
1515
* file that was distributed with this source code.
1616
*
17-
* @version 0.9.17
18-
* @copyright 2020-2021 Kristuff
17+
* @version 0.9.18
18+
* @copyright 2020-2022 Kristuff
1919
*/
2020

2121
use Kristuff\AbuseIPDB\AbuseIPDBClient;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"require": {
1616
"php": ">=7.1",
1717
"kristuff/mishell": "^1.5-stable",
18-
"kristuff/abuseipdb": "^0.9.14-stable"
18+
"kristuff/abuseipdb": "^1.0-stable"
1919
},
2020
"autoload": {
2121
"psr-4": {

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/conf.ini

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
; \__,_|_.__/\_,_/__/\___|___|_| |___/|___/
55
;
66
; Kristuff\AbuseIPDB-client configuration file.
7-
; v0.9.17 | (c) Kristuff <[email protected]>
7+
; v0.9.18 | (c) Kristuff <[email protected]>
88

99
; -----------------------------------------------------------
1010
; WARNING: In most of the cases you should not modify this
@@ -27,13 +27,16 @@ api_key=
2727
; The maximum number of milliseconds to allow cURL functions to execute. If libcurl is
2828
; built to use the standard system name resolver, that portion of the connect will still
2929
; use full-second resolution for timeouts with a minimum timeout allowed of one second.
30-
; Default is 0 (no timeout)
30+
; Default is 0 (no timeout)
31+
;
32+
; Example for 5 seconds timeout:
33+
; timeout=5000
3134
timeout=0
3235

3336
[report]
3437
; self_ips:
35-
; Represents the ips or domain list to exclude from report messages (email address are already removed)
36-
; List MUST be comma separated and MAY comtain spaces. Order does matter for subdomains.
38+
; Represents the ips or domain list to exclude from report messages (email addresses are already removed)
39+
; List MUST be comma separated and MAY contain spaces. Order does matter for subdomains.
3740
;
3841
; Example:
3942
; self_ips= "xx9999.ip-256-256-256.xx ,256.256.256.256, subdomain.example.com,example.com, example"

create_package.sh

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/sh
22

3+
# make sure we are in current directory as the script may be run from another location
4+
# to use relative path
5+
#cd `dirname $0`
6+
37
# our dist directory
48
mkdir -p dist
59

@@ -10,6 +14,7 @@ mkdir -p debian/usr/lib/abuseipdb-client
1014
mkdir -p debian/usr/share/doc/abuseipdb-client
1115
mkdir -p debian/usr/share/man/man1
1216
mkdir -p debian/etc/abuseipdb-client
17+
#mkdir -p debian/etc/fail2ban
1318

1419
# populate the debian directory
1520
cp deb/control debian/DEBIAN
@@ -20,10 +25,19 @@ cp config/conf.ini debian/etc/abuseipdb-client
2025
cp deb/copyright debian/usr/share/doc/abuseipdb-client
2126
cp deb/changelog debian/usr/share/doc/abuseipdb-client/changelog.Debian
2227
gzip -9 -n debian/usr/share/doc/abuseipdb-client/changelog.Debian
28+
# Fix Error debian-changelog-file-missing-or-wrong-name
29+
# but add a warning instead duplicate-changelog-files
30+
# see https://www.debian.org/doc/debian-policy/ch-docs.html#s-changelogs
31+
cp deb/changelog debian/usr/share/doc/abuseipdb-client/changelog
32+
gzip -9 -n debian/usr/share/doc/abuseipdb-client/changelog
33+
2334
cp LICENSE debian/usr/lib/abuseipdb-client
2435
cp -R bin debian/usr/lib/abuseipdb-client
2536
cp -R src debian/usr/lib/abuseipdb-client
2637
cp -R vendor debian/usr/lib/abuseipdb-client
38+
cp -R fail2ban debian/usr/lib/abuseipdb-client
39+
#cp -R fail2ban debian/etc/fail2ban
40+
2741

2842
# convert and deploy man page
2943
/usr/bin/pandoc --standalone --to man deb/man.md -o debian/usr/share/man/man1/abuseipdb.1
@@ -34,7 +48,8 @@ cp composer.json debian/usr/lib/abuseipdb-client
3448
cp composer.lock debian/usr/lib/abuseipdb-client
3549

3650
# adjust ownerships
37-
chown -R root:root debian
51+
# chown -R root:root debian
52+
# unused since --root-owner-group option in dpkg-deb
3853
find debian -type d -exec chmod 0755 {} \; #set directory attributes
3954
find debian -type f -exec chmod 0644 {} \; #set data file attributes
4055
find debian/usr/lib/abuseipdb-client/bin -type f -exec chmod 0755 {} \; #set executable attributes
@@ -44,4 +59,5 @@ chmod 755 debian/DEBIAN/postinst
4459
chmod 755 debian/DEBIAN/prerm
4560

4661
# finally build the package
47-
dpkg-deb --build debian dist
62+
dpkg-deb --root-owner-group --build debian .
63+
#dist

deb/changelog

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,49 @@
1-
abuseipdb-client (0.9.17+deb11u1) unstable; urgency=low
1+
abuseipdb-client (0.9.18) unstable; urgency=medium
22

3-
* Improve/fix package
4-
Fix typos in man page, files permissions, scripts error reporting
5-
php-cli is now the dependency (instead of php)
6-
conf.ini under /etc now marqued as conffile
3+
* Change: minor change in chaeck report when total reports is 0
4+
and lastReportedAt field is not null (could happen when deleting
5+
report)
6+
* Include Fail2ban action file (abuseipdb.local) in package
7+
* Update dependency
78

8-
-- kristuff <[email protected]> Thu, 09 Dec 2021 19:00:00 +0100
9+
-- kristuff <[email protected]> Wed, 26 Jan 2022 19:00:00 +0200
910

10-
abuseipdb-client (0.9.17) unstable; urgency=low
11+
abuseipdb-client (0.9.17+deb11u1) unstable; urgency=medium
12+
13+
* Improve/fix package:
14+
Fix typos in man page, files permissions, scripts error reporting
15+
php-cli is now the dependency (instead of php)
16+
conf.ini under /etc now marked as conffile
17+
18+
-- kristuff <[email protected]> Thu, 09 Dec 2021 19:00:00 +0200
19+
20+
abuseipdb-client (0.9.17) unstable; urgency=medium
1121

1222
* New feature: timeout for all cURL request can be defined in conf.ini
1323
or from command line using the -t, --timeout option. Timeout is expressed
1424
in milliseconds.
1525
* A man page is now available
1626

17-
-- kristuff <[email protected]> Tue, 07 Dec 2021 19:00:00 +0100
27+
-- kristuff <[email protected]> Tue, 07 Dec 2021 19:00:00 +0200
1828

19-
abuseipdb-client (0.9.16) unstable; urgency=low
29+
abuseipdb-client (0.9.16) unstable; urgency=medium
2030

2131
* Fix php doc, typo, formatting in source code
2232
* Include composer.json and composer.lock in .deb package
2333

24-
-- kristuff <[email protected]> Sun, 28 Nov 2021 19:00:00 +0100
34+
-- kristuff <[email protected]> Sun, 28 Nov 2021 19:00:00 +0200
2535

26-
abuseipdb-client (0.9.15) unstable; urgency=low
36+
abuseipdb-client (0.9.15) unstable; urgency=medium
2737

2838
* Break change Configuration is now in INI format and located in a conf.ini file
2939
(with possible override in a local.ini file) instead of json files.
3040
* The save-key command has been removed.
3141
* When installing the .deb package, config is now located in /etc/abuseipdb-client/
3242

33-
-- kristuff <[email protected]> Tue, 23 Nov 2021 19:00:00 +0100
43+
-- kristuff <[email protected]> Tue, 23 Nov 2021 19:00:00 +0200
3444

35-
abuseipdb-client (0.9.14) unstable; urgency=low
45+
abuseipdb-client (0.9.14) unstable; urgency=medium
3646

3747
* Initial release
3848

39-
-- kristuff <[email protected]> Wed, 10 Nov 2021 19:00:00 +0100
49+
-- kristuff <[email protected]> Wed, 10 Nov 2021 19:00:00 +0200

deb/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: abuseipdb-client
2-
Version: 0.9.17+deb11u1
2+
Version: 0.9.18
33
Maintainer: kristuff <[email protected]>
44
Architecture: all
55
Depends: php-cli, php-curl

deb/copyright

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Upstream-Name: AbuseIPDB-client
33
Upstream-Contact: kristuff <[email protected]>
44

55
Files: *
6-
Copyright: 2020-2021 Kristuff <[email protected]>
6+
Copyright: 2020-2022 Kristuff <[email protected]>
77
License: MIT License
88
Permission is hereby granted, free of charge, to any person obtaining a copy
99
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)