forked from scrapy/scrapy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Splitted single Debian package into two packages (closes scrapy#187):
- scrapy: which provides only the library and scrapy-ctl command - scrapy-service: which provides the service, upstart script, system user, etc This allows a clean install of just the library for those which are not interested in the Scrapy service. --HG-- rename : debian/scrapy.dirs => debian/scrapy-service.dirs rename : debian/scrapy.install => debian/scrapy-service.install rename : debian/scrapy.postinst => debian/scrapy-service.postinst rename : debian/scrapy.postrm => debian/scrapy-service.postrm rename : debian/scrapy.upstart => debian/scrapy-service.upstart rename : debian/conf/service_conf.py => debian/service_conf.py
- Loading branch information
1 parent
e145ec6
commit f6eac8e
Showing
21 changed files
with
98 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scrapy (0.9~r2000-1) unstable; urgency=low | ||
scrapy (0.10) unstable; urgency=low | ||
|
||
* Initial release. | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,22 @@ Source: scrapy | |
Section: python | ||
Priority: optional | ||
Maintainer: Insophia Team <[email protected]> | ||
Build-Depends: debhelper (>= 7.0.50), python-twisted | ||
Build-Depends-Indep: python-support, python, python-sphinx, libjs-jquery | ||
Build-Depends: debhelper (>= 7.0.50), python (>=2.5), python-twisted | ||
Standards-Version: 3.8.4 | ||
Homepage: http://scrapy.org/ | ||
|
||
Package: scrapy | ||
Architecture: all | ||
Depends: ${misc:Depends}, ${python:Depends}, python-libxml2, python-twisted, python-openssl | ||
Provides: ${python:Provides} | ||
Description: Python web scraping and crawling framework | ||
Depends: ${python:Depends}, python-libxml2, python-twisted, python-openssl | ||
Description: Python web crawling and scraping framework | ||
Scrapy is a fast high-level screen scraping and web crawling framework, | ||
used to crawl websites and extract structured data from their pages. | ||
It can be used for a wide range of purposes, from data mining to | ||
monitoring and automated testing. | ||
|
||
Package: scrapy-service | ||
Architecture: all | ||
Depends: scrapy | ||
Description: Scrapy Service | ||
This package provides support for running Scrapy as a system service, | ||
controlled through an upstart script. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
This package was debianized by Insophia <[email protected]>. | ||
This package was debianized by the Insophia <[email protected]>. | ||
|
||
It was downloaded from http://scrapy.org | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.5-2.6 | ||
2.5- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
#!/usr/bin/make -f | ||
# -*- makefile -*- | ||
|
||
export DH_ALWAYS_EXCLUDE=license.txt:_sources/:.buildinfo | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_auto_install: | ||
dh_auto_install | ||
mv $(CURDIR)/debian/scrapy/usr/bin/scrapy-ctl.py $(CURDIR)/debian/scrapy/usr/bin/scrapy-ctl | ||
mv $(CURDIR)/debian/scrapy/usr/bin/scrapy-ws.py $(CURDIR)/debian/scrapy/usr/bin/scrapy-ws | ||
mv $(CURDIR)/debian/scrapy/usr/bin/scrapy-sqs.py $(CURDIR)/debian/scrapy/usr/bin/scrapy-sqs | ||
mkdir -p $(CURDIR)/debian/scrapy/usr/bin | ||
mv $(CURDIR)/debian/tmp/usr/bin/scrapy-ctl.py $(CURDIR)/debian/scrapy/usr/bin/scrapy-ctl | ||
mv $(CURDIR)/debian/tmp/usr/bin/scrapy-ws.py $(CURDIR)/debian/scrapy/usr/bin/scrapy-ws | ||
mv $(CURDIR)/debian/tmp/usr/bin/scrapy-sqs.py $(CURDIR)/debian/scrapy/usr/bin/scrapy-sqs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Defaults for Scrapy service | ||
|
||
export PYTHONPATH=/etc/scrapy | ||
export SCRAPY_SETTINGS_MODULE=service_conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
usr/bin | ||
usr/share/scrapy | ||
var/lib/scrapy | ||
var/log/scrapy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
debian/service_conf.py etc/scrapy | ||
extras/scrapy.tac usr/share/scrapy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
new-package-should-close-itp-bug | ||
script-in-etc-init.d-not-registered-via-update-rc.d /etc/init.d/scrapy-service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
case "$1" in | ||
configure) | ||
# Create user to run the service as | ||
if [ -z "`id -u scrapy 2> /dev/null`" ]; then | ||
adduser --system --home /var/lib/scrapy --gecos "scrapy" \ | ||
--no-create-home --disabled-password \ | ||
--quiet scrapy || true | ||
fi | ||
if [ ! -d /var/run/scrapy ]; then | ||
mkdir /var/run/scrapy | ||
chown scrapy:nogroup /var/run/scrapy | ||
fi | ||
|
||
chown scrapy:nogroup /var/log/scrapy /var/lib/scrapy /var/run/scrapy | ||
;; | ||
|
||
abort-upgrade|abort-remove|abort-deconfigure) | ||
;; | ||
|
||
*) | ||
echo "postinst called with unknown argument \`$1'" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
#DEBHELPER# | ||
|
||
exit 0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
case "$1" in | ||
remove|upgrade|deconfigure) | ||
rm -f /etc/scrapy-service/service_conf.pyc | ||
;; | ||
|
||
failed-upgrade) | ||
;; | ||
|
||
*) | ||
echo "prerm called with unknown argument \`$1'" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
#DEBHELPER# | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Scrapy service | ||
|
||
start on runlevel [2345] | ||
stop on runlevel [06] | ||
|
||
script | ||
[ -r /etc/default/scrapy-service ] && . /etc/default/scrapy-service | ||
exec twistd -ny /usr/share/scrapy/scrapy.tac \ | ||
-u scrapy -g nogroup \ | ||
-l /var/log/scrapy/service.log \ | ||
--pidfile /var/run/scrapy/scrapy.pid | ||
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
debian/conf/service_conf.py etc/scrapy | ||
debian/conf/environment etc/scrapy | ||
extras/scrapy.tac usr/share/scrapy | ||
debian/tmp/usr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
new-package-should-close-itp-bug | ||
binary-without-manpage usr/bin/scrapy-sqs | ||
binary-without-manpage usr/bin/scrapy-ws | ||
extra-license-file usr/share/pyshared/scrapy/xlib/pydispatch/license.txt |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.