Package Details: adsuck 2.5.0-4

Git Clone URL: (read-only)
Package Base: adsuck
Description: DNS filter
Upstream URL:
Licenses: BSD
Submitter: acoolon
Maintainer: jorge_barroso
Last Packager: jorge_barroso
Votes: 13
Popularity: 0.000000
First Submitted: 2010-12-17 10:03
Last Updated: 2015-06-15 19:23

Latest Comments

venamresm commented on 2018-01-06 13:24

For those who still want to use this wonderful software I've updated the PKGBUILD and install.

skanky commented on 2015-05-13 21:12

@Carpetsmoker - change the /usr/sbin to /usr/bin in the first install command in the PKGBUILD before running makepkg -i

Carpetsmoker commented on 2015-01-03 22:02

pacman -U errors out with:

error: failed to commit transaction (conflicting files)
adsuck: /usr/sbin exists in filesystem
Errors occurred, no packages were upgraded.

/usr/sbin/adsuck does *not* exist on my system...

My .MTREE has:

./usr/sbin time=1420322193.537494546 type=dir
./usr/sbin/adsuck time=1420322193.537494546 mode=700 size=39864 md5digest=ef1f22df70a7bc89dce12e2ed715e947 sha256digest=251666755156c0af1a0c283dcdb2636f56f220d9a9d892a1771e7e8d9452ad33

sysfu commented on 2014-01-20 18:48

Tip: prevent dhcp from overwriting the nameservers in /etc/resolv.conf on boot by editing /etc/dhcpcd.conf and adding "nohook resolv.conf"

Also, this package is not ready to run out of the box. If a resolv.conf and hosts files are not manually copied to /var/adsuck the systemd service will fail to start.

csw commented on 2014-01-11 14:13

Any chance to complete and move to community repository?

joni commented on 2013-12-12 20:52

Also please make the following changes:

Add to [Service] section of adsuck.service:

ExecReload=/bin/kill -HUP $MAINPID

Change contents of 50-adsuck-update:


# copy the resolv.conf generated by dhcpcd to the adsuck directory
cp -f /etc/resolv.conf /var/adsuck/

if systemctl is-active adsuck.service; then
# create a new resolv.conf containing one entry pointing to the loopback device
echo "nameserver" > /etc/resolv.conf

# make adsuck reload the config to make sure the new resolv.conf file is read
systemctl reload adsuck.service

sysfu commented on 2013-10-13 00:31

Package needs update to change /usr/sbin paths to /usr/bin as per

jorge_barroso commented on 2013-04-08 15:02

hi, I'm the adsuck package maintainer, sorry, I didn't fall on account of my mistakes on the ".rc" and ".service" installation files, I've already solved it, but, I haven't add the commented line for .rc as archlinux no longer supports initscripts

core_sum commented on 2013-04-07 20:59


I've got issue when I try to build adsuck.
Compiler cannot find "adsuck.rc" in srcdir, build stop on this.

any ideas about this one ?


skanky commented on 2013-03-04 11:01

I think the following patch will:

1) Fix the service file issue
2) Comment out the adsuck.rc install
3) Make the filter file a backed up file (eg .pacnew and .pacsave) on upgrade or removal.

I've tested it on my machine and it installed okay, but I've not done much patching before, so it might be able to be tidied up a bit.


--- PKGBUILD 2013-02-27 13:10:17.000000000 +0000
+++ 2013-03-04 10:48:44.339441438 +0000
@@ -8,6 +8,7 @@
pkgdesc="DNS filter"
depends=(ldns libevent)
@@ -30,8 +31,9 @@
install -D -m700 "${srcdir}/${pkgname}-${pkgver}/adsuck" "${pkgdir}/usr/sbin/adsuck"
install -D "${srcdir}/${pkgname}-${pkgver}/adsuck.8" "${pkgdir}/usr/share/man/man8/adsuck.8"
install -D -m644 "${srcdir}/filter" "${pkgdir}/var/adsuck/filter"
- install -D -m755 "${srcdir}/adsuck.rc" "${pkgdir}/etc/rc.d/adsuck"
- install -D -m755 "${srcdir}/adsuck.rc" "${pkgdir}/usr/lib/systemd/system/adsuck.service"
+ # swap following two lines' comment status if using initscripts
+ #install -D -m755 "${srcdir}/adsuck.rc" "${pkgdir}/etc/rc.d/adsuck"
+ install -D -m755 "${srcdir}/adsuck.service" "${pkgdir}/usr/lib/systemd/system/adsuck.service"
# uncomment if you want it
#install -D -m755 "${srcdir}/50-adsuck-update" "${pkgdir}/usr/lib/dhcpcd/dhcpcd-hooks/50-adsuck-update"
\ No newline at end of file


jorge_barroso commented on 2013-02-11 16:33

there is already a service file ;) check it

Anonymous comment on 2013-02-04 20:46

Please fix the adsuck.rc installing as a service file.

WhyNotHugo commented on 2013-01-28 17:45

Latest PKGBUILD is installing "${srcdir}/adsuck.rc" into "${pkgdir}/usr/lib/systemd/system/adsuck.service", instead of "${srcdir}/adsuck.service"

WhyNotHugo commented on 2013-01-05 20:38

Here's a systemd unit file, which should be installed to /usr/lib/systemd/system/adsuck.service:

WhyNotHugo commented on 2013-01-05 20:34

Here's a systemd unit file, which should be installed to /usr/lib/systemd/system/adsuck.service:

csw commented on 2013-01-02 21:50

2.5.0 is out

jorge_barroso commented on 2012-12-09 17:56

I'm updating and checking it

jorge_barroso commented on 2012-12-09 17:56

I'm updating and correcting it :)

csw commented on 2012-12-07 12:12

Any migration plans to the community repository?

timofonic commented on 2012-12-01 01:49

The package it's outdated, systemd is available by default on latest Arch Linux image and latest updates.

Anonymous comment on 2012-11-16 21:15

i was not sure how to install, but adsuck was writing over /etc/resolv.conf but was not keeping the original one.
so i added the following to the adsuck.service:
ExecStartPre=/bin/sh -c "cp /etc/resolv.conf /var/adsuck/resolv.conf"

skanky commented on 2012-10-04 09:43

Thanks for the update.

Here's what I have as my systemd service file:

Description=Adsuck daemon

ExecStart=/usr/sbin/adsuck -c /var/adsuck -f /resolv.conf /hosts -r /filter
ExecStop=/bin/kill $MAINPID
ExecReload=/bin/kill -HUP $MAINPID ; /bin/kill -USR1 $MAINPID


Might need tweaking, it's based on the rc.d file and seems to run okay on my machine.
It needs to be placed at /usr/lib/systemd/system/adsuck.service.

On a slightly different note, is it possible to have filter not overwrite the current file? Make it a pacnew file, say?

jorge_barroso commented on 2012-10-03 19:34

sorry jakobcreutzfeldt, I don't know what are you talking about :$ I'll do it if you explain me what are you talking about. By now the package is already updated ^.^

jakobcreutzfeldt commented on 2012-10-03 15:54

2.4.3 is out. Also, it would be great if systemd service files were included!

joni commented on 2011-05-09 11:25

I have modified 50-adsuck-update to check if adsuck is running before replacing /etc/resolv.conf:

acoolon commented on 2011-05-08 08:17

Please update or free this package..

mimas commented on 2011-02-22 02:01

Hello, libevent is a new dependency since version 2.0.