You are not logged in.

#1 2009-07-31 18:42:46

ugkbunb
Member
Registered: 2009-02-26
Posts: 227

[REQUEST] NFBlock Daemon (moblock replacement)

I liked the description of NFBlock and I would like to test it out to see if it will work for me as a replacement for moblock.

http://sites.google.com/site/makovick/nfblockd-daemon wrote:

NFBlock blocker has been inspired by MoBlock and PeerGuardian. NFblock has simpler and cleaner code, 2-3 times smaller typical memory footprint, can read gzipped ASCII blocklists, and run as a daemon. Debian Linux build and installation scripts with automated blocklist updates are included.

I have no idea how to go about making a PKGBUILD... the main parts I do not understand are the individual install commands and where each of the files in NFBlock should be placed to.... It is small program and if anyone could point me in the right direction or if they are bored and would like to just slap together an PKGBUILD I would  be much in their debt.

Thanks in advance-
ugkbunb

Offline

#2 2009-08-06 19:13:58

ugkbunb
Member
Registered: 2009-02-26
Posts: 227

Re: [REQUEST] NFBlock Daemon (moblock replacement)

Here is my best attmept at making a PKGBUILD. If anyone would who has the know how would please look it over to see if it is correctly done.

# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Contributor: Your Name <youremail@domain.com>
pkgname=nfblock
pkgver=0.6.2
pkgrel=1
pkgdesc="NFBlock blocker has been inspired by MoBlock and PeerGuardian. NFblock has simpler and cleaner code, 2-3 times smaller typical memory footprint, can read gzipped ASCII blocklists, and run as a daemon. Debian Linux build and installation scripts with automated blocklist updates are included. "
arch=('i686', 'x86_64')
url="http://sites.google.com/site/makovick/nfblockd-daemon"
license=('GPL')
groups=()
depends=('libnetfilter_queue' 'libnfnetlink' 'iptables')
makedepends=('libnetfilter_queue' 'libnfnetlink' 'iptables')
install=
source=(http://sites.google.com/site/makovick/projects/$pkgname-$pkgver.tgz
makefile.patch)
md5sums=('5b9440e5d1aa0d4917edd45e75e0b00a'
         'd19b7f9b3b5578a5c9e535b4fd961318')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -p1 -i makefile.patch
  make || return 1
  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et:
*** ./Makefile    2009-08-03 23:30:48.414075913 -0500
--- ./Makefile2    2009-08-03 23:32:48.174113839 -0500
***************
*** 21,27 ****
  # Want to use gdb on the target binary?
  #DEBUG ?= yes
  
! prefix ?= /usr/local
  SBINDIR ?= $(prefix)/sbin
  DBUSCONFDIR ?= /etc/dbus-1/system.d
  PLUGINDIR ?= $(prefix)/lib/nfblock
--- 21,27 ----
  # Want to use gdb on the target binary?
  #DEBUG ?= yes
  
! prefix ?= /usr
  SBINDIR ?= $(prefix)/sbin
  DBUSCONFDIR ?= /etc/dbus-1/system.d
  PLUGINDIR ?= $(prefix)/lib/nfblock
$ pacwhereis nfblock
nfblock /etc/
nfblock /etc/dbus-1/
nfblock /etc/dbus-1/system.d/
nfblock /etc/dbus-1/system.d/nfblockd.conf
nfblock /usr/
nfblock /usr/lib/
nfblock /usr/lib/nfblock/
nfblock /usr/lib/nfblock/dbus.so
nfblock /usr/lib/nfblock/dl-blocklistpro.pl
nfblock /usr/sbin/
nfblock /usr/sbin/nfblockd
Name           : nfblock
Version        : 0.6.2-1
URL            : http://sites.google.com/site/makovick/nfblockd-daemon
Licenses       : GPL  
Groups         : None
Provides       : None
Depends On     : libnetfilter_queue  libnfnetlink  iptables  
Optional Deps  : None
Required By    : None
Conflicts With : None
Replaces       : None
Installed Size :  80.00 K
Packager       : Unknown Packager
Architecture   : x86_64
Build Date     : Thu 06 Aug 2009 02:01:53 PM CDT
Install Date   : Thu 06 Aug 2009 02:02:31 PM CDT
Install Reason : Explicitly installed
Install Script : No
Description    : NFBlock blocker has been inspired by MoBlock and PeerGuardian.
                 NFblock has simpler and cleaner code, 2-3 times smaller
                 typical memory footprint, can read gzipped ASCII blocklists,
                 and run as a daemon. Debian Linux build and installation
                 scripts with automated blocklist updates are included.

Offline

#3 2010-09-09 12:49:23

N30N
Member
Registered: 2007-04-08
Posts: 273

Re: [REQUEST] NFBlock Daemon (moblock replacement)

ugkbunb wrote:

Here is my best attmept at making a PKGBUILD.

I finished it off and added it to the AUR.

Offline

Board footer

Powered by FluxBB