Forum

Full Version: rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
- If a control file settings is empty, just remove it.
- Please just create a single package that works properly. Either 0.9.2, 0.9.3 or 0.9.4 and just name it xbian-package-rtorrent. Memory leaks are not an option.
- Check the postrm files of the other xbian package.

The quote i make was to show you how package are created in the official repository.
As single package you mean rtorrent + rutorrent?

https://github.com/xbianonpi/xbian-package-xbmc-scripts/blob/master/content/DEBIAN/postrm
https://github.com/xbianonpi/xbian-package-config-xbmc/blob/master/content/DEBIAN/postrm
https://github.com/xbianonpi/xbian-package-cec/blob/master/content/DEBIAN/postrm
https://github.com/xbianonpi/xbian-package-headphones/blob/master/content/DEBIAN/postrm
https://github.com/xbianonpi/xbian-package-sickbeard-tpb/blob/master/content/DEBIAN/postrm
As you can see in all of them only config files are removed so I don't know what you're talking about delete all in my postrm...

It's better to make 3 packages with 3 versions because a lot of trackers don't allow f.e. 0.9.3 (I'm on 2 of those trackers) Some don't like 0.9.4 etc etc
https://github.com/xbianonpi/xbian-package-development/blob/master/content/DEBIAN/postrm

Quote:It's better to make 3 packages with 3 versions because a lot of trackers don't allow f.e. 0.9.3 (I'm on 2 of those trackers) Some don't like 0.9.4 etc etc
Then users can always create one themselves. From the XBian point of view, we just offer one package. Up to you what version it should be. As long as it isn't an unstable version with lots of memory leaks.
I'll make deb file for people who want to use nginx+rutorrent+rtorrent for now. If I'll find any information about how to determine which webserver is used/ I suppouse I can make it by searching for config files in common paths but don't have enough will to install all of them nowWink Maybe in some other time I'll make it.

Thanks for help CurlyMo! And I suppouse when I'll have something I'll write in this topic.
Best wishes
koper89,

0.9.2 is widely accepted in almost all Private trackers including CHD, HDT. PTP etc..
Yep but 0.9.3 have pretty significant fixes to 0.9.2 so it's complicated to satisfy everyone with 1 packageWink
Quote:If I'll find any information about how to determine which webserver is used ...

Code:
which apachectl 1>/dev/null && APACHE=1 || APACHE=0;
which nginx 1>/dev/null && NGINX=1 || NGINX=0
which lighttpd 1>/dev/null && LIGHTTP=1 || LIGHTTP=0

You can also patch 0.9.2 with those fixes in 0.9.3 that are worth while.
(10th Jun, 2014 11:42 PM)CurlyMo Wrote: [ -> ]
Quote:If I'll find any information about how to determine which webserver is used ...

Code:
which apachectl 1>/dev/null && APACHE=1 || APACHE=0;
which nginx 1>/dev/null && NGINX=1 || NGINX=0
which lighttpd 1>/dev/null && LIGHTTP=1 || LIGHTTP=0

You can also patch 0.9.2 with those fixes in 0.9.3 that are worth while.

I won't patch 0.9.2 with 0.9.3 fixes, but if someone want to I can help with merging it. Thanks for script with how to determine which webserver Is used, I'll try to implement it in my rutorrent package.
You don't need to remove files contained in the package in the postrm script. dpkg saves a list of the package content in /var/lib/dpkg/info/<package name>.list and uses it to remove files belonging to it. (I can't speak for the past, but that's what it does now.)
I'm sure it never worked like that before. To be save, just add your own logic in the postrm file.
I thought about making my package check if somone have installed lightpd/nginx/apache but more I think about it it become more complex, and I think I should make it as simple as possible:
If someone have none? should I use in post install apt-get install ngninx or something? To install it?
If someone have lighttpd and php5 and I prefer php5-fpm should I change his script to mine and change to php5-fpm? I'll not check every possibility because it's pointless and too complicated for me.
If someone have more than one lightpd + f.e. nginx what should i do?
If someone compiled f.e. nginx/lighttpd by himself and change dir for config ?
That's what we call "the best we can do".

- If someone doesn't have one installed you let the postinst script post a message that they should edit the config themselves.
- What's the difference between php5 and php5-fpm?
- Don't limit the logic in configuring one webserver, just adapt those installed.
- That he should edit the configs himself.

Another option would be to describe what the users should change after the package has been installed and just let them do it themselves.
Pages: 1 2
Reference URL's