PDA

View Full Version : problems with pure-ftpd-mysql and openvz


grungy
8th January 2009, 10:47
I know you made clear in the ispconfig 3 setup how to solve this problem, but I rent my vps from a provider and cannot apply your patch.....

So if a user has problems with pure-ftpd-mysql and has a openvz system (pure-ftpd: (?@?) [ERROR] Unable to switch capabilities : Operation not permitted) you will have to compile your pure-ftpd-mysql with --without-capabilities.

short info:

after you download the deb source:

nano pure-ftpd-1.0.21/debian/rules

line 12 add --without-capabilities

optflags=--with-everything --with-largefile --with-pam --with-privsep --with-tls --without-capabilities


then build your .deb package and install dpkg -i pure-ftpd-mysql_1.0.21-8_i386.deb

jcombs_31
19th January 2009, 23:27
Can you please explain how to build the package?

I ended up getting it working, but there is no documentation stating that you need some more packages to build packages and I guess you expect that people know how to build packages. I just think it should be added into the documentation for newbs like me, or at least explain it in more detail here. I don't really want to do it because maybe I didn't do it the way it should be done.

till
20th January 2009, 10:59
Normally it is not nescessary to build a new package.

jcombs_31
20th January 2009, 15:40
Maybe not, but I just so happened to be that exception using debian 4 on an openvz vps. I was able to compile it and install it fine, but I noticed now if I run apt-get update/upgrade it tries to overwrite my package with one from the repo. Is that normal or did I do something wrong?

falko
20th January 2009, 21:28
You can use apt-pinning: http://www.howtoforge.com/forums/showthread.php?t=4863&highlight=apt-pinning

djoey
20th January 2009, 22:35
Hi,

I downloaded the sources, and added the line as you mentioned, now i try to build the .deb package with the command dpkg -b dirname filename.deb then it gives me:

dpkg -b pure-ftpd-1.0.21 pure-ftpd-mysql_1.0.21-8_i386.deb
dpkg-deb: failed to open package info file `pure-ftpd-1.0.21/DEBIAN/control' for reading: No such file or directory

Should I not build it as root?

jcombs_31
21st January 2009, 00:28
I built the package based on these directions http://www.debian.org/doc/manuals/apt-howto/ch-sourcehandling.en.html

jcombs_31
21st January 2009, 00:30
You can use apt-pinning: http://www.howtoforge.com/forums/showthread.php?t=4863&highlight=apt-pinning

Thanks. I was able to pin the program but in the monitor I get a warning about a package needing an update. I guess that is fine but I like to see everything green. :(

djoey
21st January 2009, 14:43
Instead of using apt-pinning you can just set packages on hold:

echo package hold | dpkg --set-selections

To undo that:

echo package install | dpkg --set-selections

To view a list of "on hold" packages:

dpkg --get-selections | grep hold

this way you get your monitoring "green" again :)

jcombs_31
23rd January 2009, 19:17
Instead of using apt-pinning you can just set packages on hold:

echo package hold | dpkg --set-selections

To undo that:

echo package install | dpkg --set-selections

To view a list of "on hold" packages:

dpkg --get-selections | grep hold

this way you get your monitoring "green" again :)

Thanks, this worked nice.

kevinwalter
26th June 2009, 22:45
hi,
i cant find
/rules

if i open the deb etc etc i see only:

INSTALL
INFO
DEBIAN and here i cant find rules :S
CONTENTS

is there a soluiton or is there a good deb source link?

Greetz,
kevinwalter

falko
27th June 2009, 21:00
What exactly did you do so far?
In what directory do you see the files you mentioned?

grungy
28th June 2009, 14:48
hi,
i cant find
/rules

if i open the deb etc etc i see only:

INSTALL
INFO
DEBIAN and here i cant find rules :S
CONTENTS

is there a soluiton or is there a good deb source link?

Greetz,
kevinwalter



short tutorial

apt-get source pure-ftpd
cd pure-ftpd-1.0.21/
nano debian/rules
apt-get build-dep pure-ftpd
dpkg-buildpackage -uc -b
cd ..
dpkg -i pure-ftpd-mysql_1.0.21-11.4_i386.deb