You are not logged in.

#1 2013-09-05 20:25:10

Ferchu
Member
From: Buenos Aires - Argentina
Registered: 2012-06-12
Posts: 51

[solved] havp is left or damage?

I'm installing HAVP from Aur with Yaourt. But it made  me an empty package.
From this forum, I see this topic
https://bbs.archlinux.org/viewtopic.php?id=168311
And  HAVP is installed into the firewall.

Now, I want to enable and start havp after settings:

systemctl enable havp
systemctl start havp
systemctl status havp

But systemctl say me that havp.service not exist

Failed to issue method call: Unit havp.service failed to load: No such file or directory. See system logs and 'systemctl status havp.service' for details.

if I ran havp from command line, I get this error:

Starting HAVP Version: 0.92
Filesystem not supporting mandatory locks!
On Linux, you need to mount filesystem with "-o mand"
Exiting..

I googled it and change my fstab to:

# /dev/sda1             /               ext4            rw,relatime,data=ordered   0 1
/dev/sda1               /               ext4            defaults,mand   0 1
/dev/sda2               swap            swap            defaults        0 0

Where the remark line is the original.

I reboot several times but i get always this two last errors,  and I can't make havp run

Last edited by Ferchu (2013-09-10 12:47:15)


___________________________________
Fernando Pucci
GPG:  E1AB 369F C188 9DCD F423 7090 1C88 D8FB C3FB 42EB

Offline

#2 2013-09-06 03:43:51

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 507

Re: [solved] havp is left or damage?

Having to do with it everyday and finally not anymore wouldn't opt for havp, check out c-icap if you are looking for a better integration with squid/dansguardian etc.. But this of course doens't answer the thread...

While installing havp I would read the comments of the AUR users:

Comment by kerim  (2013-08-15 21:59)
to produce none empty package

in PKGBUILD change these lines

from:
make DESTDIR=$startdir/havp install
to:
make DESTDIR=$startdir/pkg/havp install


from:
install -D -m755 $startdir/src/$pkgname-$pkgver/etc/init.d/$pkgname $startdir/havp/etc/rc.d/$pkgname
to:
install -D -m755 $startdir/src/$pkgname-$pkgver/etc/init.d/$pkgname $startdir/pkg/havp/etc/rc.d/$pkgname


from:
perl -pi -e 's/usr\/local\///' $startdir/havp/etc/rc.d/$pkgname
to:
perl -pi -e 's/usr\/local\///' $startdir/pkg/havp/etc/rc.d/$pkgname


then it will produce all package content with full of files. wink

Offline

#3 2013-09-06 04:56:17

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] havp is left or damage?

You should be acutely aware of what you do with the AUR.  The build scripts there are unregulated and unsupported.  So it is your responsisbility to ensure that what the PKGBUILD is doing is not anything malicious.  This is just yet another reason not to use an AUR helper, and particularly one that has a recommended installation method that doesn't encourage the user to understand what and how these packages are created.

Offline

#4 2013-09-06 13:13:07

Ferchu
Member
From: Buenos Aires - Argentina
Registered: 2012-06-12
Posts: 51

Re: [solved] havp is left or damage?

r0b0t wrote:

Having to do with it everyday and finally not anymore wouldn't opt for havp, check out c-icap if you are looking for a better integration with squid/dansguardian etc.. But this of course doens't answer the thread...

While installing havp I would read the comments of the AUR users:

Comment by kerim  (2013-08-15 21:59)
to produce none empty package

in PKGBUILD change these lines

from:
make DESTDIR=$startdir/havp install
to:
make DESTDIR=$startdir/pkg/havp install


from:
install -D -m755 $startdir/src/$pkgname-$pkgver/etc/init.d/$pkgname $startdir/havp/etc/rc.d/$pkgname
to:
install -D -m755 $startdir/src/$pkgname-$pkgver/etc/init.d/$pkgname $startdir/pkg/havp/etc/rc.d/$pkgname


from:
perl -pi -e 's/usr\/local\///' $startdir/havp/etc/rc.d/$pkgname
to:
perl -pi -e 's/usr\/local\///' $startdir/pkg/havp/etc/rc.d/$pkgname


then it will produce all package content with full of files. wink

Exactly. This is the topic i show in the link.
I had  to do those fixes to install havp because without corrections yaourt make me an empty package.
I will read about c-icap. Thank you.
But I have three firewalls and two of them use havp. looking to swap between them.


___________________________________
Fernando Pucci
GPG:  E1AB 369F C188 9DCD F423 7090 1C88 D8FB C3FB 42EB

Offline

#5 2013-09-06 13:25:11

Ferchu
Member
From: Buenos Aires - Argentina
Registered: 2012-06-12
Posts: 51

Re: [solved] havp is left or damage?

WonderWoofy: I understand what you say. And I Agree with this. I don't want to install anything from the AUR.
But I need soft like postfix, dovecot, roundcube, maybe Mysql, HAVP and so on. Well know software. That is because i use havp


___________________________________
Fernando Pucci
GPG:  E1AB 369F C188 9DCD F423 7090 1C88 D8FB C3FB 42EB

Offline

#6 2013-09-06 14:20:28

Ferchu
Member
From: Buenos Aires - Argentina
Registered: 2012-06-12
Posts: 51

Re: [solved] havp is left or damage?

Well well well. I made havp run.
The mand option is working in fstab, my mistake is to select /tmp/... as temp folder.
I made another tmp folder into /var/log/havp/tmp to put the temp files like havp_xxxx and havp start to run.

But the systemctl start havp or systemctl enable havp not work.
I must to start it from command line just writting
# havp


___________________________________
Fernando Pucci
GPG:  E1AB 369F C188 9DCD F423 7090 1C88 D8FB C3FB 42EB

Offline

#7 2013-09-10 12:46:35

Ferchu
Member
From: Buenos Aires - Argentina
Registered: 2012-06-12
Posts: 51

Re: [solved] havp is left or damage?

Ok. I mark this topic as solved, but autostart havp as usual by systemctl is not solved.

Thank for all


___________________________________
Fernando Pucci
GPG:  E1AB 369F C188 9DCD F423 7090 1C88 D8FB C3FB 42EB

Offline

Board footer

Powered by FluxBB