mirror of
https://github.com/zoriya/flood.git
synced 2026-05-28 17:33:15 +00:00
dist/debian: make it actually work
This commit is contained in:
@@ -4,10 +4,8 @@ Tools used for installation: `apt`, `dpkg`
|
||||
|
||||
**flood**
|
||||
|
||||
`flood` folder is a proper `debian` directory structure that is created with the existing policies of Debian in mind.
|
||||
`flood` folder is a proper `debian` directory structure that is created with the existing policies and tools of Debian in mind. It uses Node.js runtime of system.
|
||||
|
||||
However, the maintainer of this project determined, with hours of reading of Debian policies and documentations, that it is out-of-scope for this project to maintain a "proper" Debian package that is suitable for submission to Debian official repository. The primary issues are: the large dependency tree and too old Node.js runtime shipped.
|
||||
Some changes would be needed to make it fully comply with Debian policies. Specially, Debian prefers the package to use Git repository as source instead of published tar bundle from npm registry. However, maintainer of this project notes that Debian's own collection of JavaScript packages is severely out-of-date, and, as a result, it would take significant efforts to add the whole dependency tree of this project to Debian.
|
||||
|
||||
No continuous integration is planned.
|
||||
|
||||
However, the contents serve as a good example and starting point if you wish to package Flood for inclusion in official repository of Debian.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
flood (4.3.1-1) unstable; urgency=low
|
||||
flood (4.4.0-1) UNRELEASED; urgency=low
|
||||
|
||||
* Initial release
|
||||
|
||||
-- replace with your name <to-be-determined@tbd> Sun, 31 Jan 2021 10:00:00 +0000
|
||||
-- replace with your name <to-be-determined@tbd> Wed, 3 Feb 2021 10:00:00 +0000
|
||||
|
||||
@@ -6,7 +6,7 @@ Uploaders: replace with your name <to-be-determined@tbd>
|
||||
Testsuite: autopkgtest-pkg-nodejs
|
||||
Build-Depends:
|
||||
debhelper-compat (= 11)
|
||||
, nodejs (>= 10)
|
||||
, nodejs (>= 12)
|
||||
, pkg-js-tools (>= 0.8.10)
|
||||
Standards-Version: 4.5.1
|
||||
Homepage: https://github.com/jesec/flood#readme
|
||||
@@ -17,7 +17,7 @@ Package: flood
|
||||
Architecture: all
|
||||
Depends:
|
||||
${misc:Depends}
|
||||
, nodejs (>= 10)
|
||||
, nodejs (>= 12)
|
||||
Recommends: mediainfo
|
||||
Description: modern web user interface for various torrent clients
|
||||
Flood is a modern web user interface for various torrent clients
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
usr/lib/nodejs/flood/dist/index.js usr/bin/flood
|
||||
@@ -0,0 +1,2 @@
|
||||
dist
|
||||
node_modules
|
||||
@@ -0,0 +1 @@
|
||||
flood/dist/index.js /usr/bin/flood
|
||||
@@ -6,3 +6,6 @@
|
||||
|
||||
%:
|
||||
dh $@ --with nodejs
|
||||
|
||||
override_dh_fixperms:
|
||||
dh_fixperms -Xdist/index.js
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
if [ -d bin ]; then
|
||||
./bin/flood --version
|
||||
if [ -d dist ]; then
|
||||
./dist/index.js --version
|
||||
else
|
||||
flood --version
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user