Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
Thank you for your donation

Pages (2): « Previous 1 2
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
10th Jun, 2014, 10:40 PM
Post: #16
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
- 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.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
10th Jun, 2014, 10:45 PM
Post: #17
koper89 Offline
Registered
Posts: 97
Joined: Jan 2014
Reputation: 8
RE: rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
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
Find all posts by this user
Quote this message in a reply
10th Jun, 2014, 10:59 PM
Post: #18
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
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.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
10th Jun, 2014, 11:28 PM
Post: #19
koper89 Offline
Registered
Posts: 97
Joined: Jan 2014
Reputation: 8
RE: rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
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
Find all posts by this user
Quote this message in a reply
10th Jun, 2014, 11:38 PM
Post: #20
atulsian Offline
Registered
Posts: 2
Joined: Apr 2014
Reputation: 0
RE: rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
koper89,

0.9.2 is widely accepted in almost all Private trackers including CHD, HDT. PTP etc..
Find all posts by this user
Quote this message in a reply
10th Jun, 2014, 11:41 PM
Post: #21
koper89 Offline
Registered
Posts: 97
Joined: Jan 2014
Reputation: 8
RE: rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
Yep but 0.9.3 have pretty significant fixes to 0.9.2 so it's complicated to satisfy everyone with 1 packageWink
Find all posts by this user
Quote this message in a reply
10th Jun, 2014, 11:42 PM
Post: #22
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
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.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
10th Jun, 2014, 11:56 PM
Post: #23
koper89 Offline
Registered
Posts: 97
Joined: Jan 2014
Reputation: 8
RE: rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
(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.
Find all posts by this user
Quote this message in a reply
11th Jun, 2014, 12:20 AM
Post: #24
menakite Offline
Management
******
Posts: 175
Joined: Apr 2014
Reputation: 27
RE: rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
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.)
Find all posts by this user
Quote this message in a reply
11th Jun, 2014, 12:24 AM
Post: #25
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
I'm sure it never worked like that before. To be save, just add your own logic in the postrm file.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
11th Jun, 2014, 07:13 AM
Post: #26
koper89 Offline
Registered
Posts: 97
Joined: Jan 2014
Reputation: 8
RE: rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
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 ?
Find all posts by this user
Quote this message in a reply
11th Jun, 2014, 04:17 PM
Post: #27
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: rtorrent 0.9.2/0.9.3/0.9.4 xbian package ready for tests
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.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): « Previous 1 2
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 11:56 PM Powered By MyBB, © 2002-2025 MyBB Group.