Packaging tasks for AmalJyothi workshop followup
We will discuss tasks for people interested in packaging.
Steps for packaging Node.js modules is listed here https://wiki.debian.org/Javascript/Nodejs/Npm2Deb
require-directory - @amalumathew
set-blocking - @arunnagathchandras
window-size
nyc
cpr
standard
standard-version
[deactivated account] Sat 8 Oct 2016 2:11PM
Steps for packaging Node.js modules is listed here https://wiki.debian.org/Javascript/Nodejs/Npm2Deb
And you can come to debian-in@conference.diasp.in chat group if you need any help.
Pirate Praveen Mon 10 Oct 2016 4:56AM
@amalumathew can you try packaging require-directory? npm2deb is similar to dh_make command, but it does more automation than dh_make. For python, we downloaded the tar.gz file manually, for nodejs modules, npm2deb and uscan commands will download the tar.gz file (sometimes we have to manually download the tar.gz file too). Feel free to ask if any step is not clear or you are stuck with some steps.
The steps you'll need are,
```
Install npm2deb package
$ sudo apt-get install npm2deb
Create debian directory for require-directory
$ npm2deb create require-directory
Download source tarball
Usually this can be done by uscan --verbose --download-current-version
but some projects does not create git tags for their releases
so we have to visit their home page (given in debian/control)
and find out the commit for the release (from their 'commits' page)
In this case 'bump to v2.1.1' commit is what we want
Click on '<>' link to browse repository on this commit
Click on the 'Clone or download' button
Right click on 'Download ZIP' and copy its url
Paste the link on the terminal and change .zip to .tar.gz
Use wget command to download this file and give -O option to set a different name for the downloaded file
$ cd require-directory/
$ wget -O node-require-directory-2.1.1.tar.gz https://github.com/troygoode/node-require-directory/archive/cc71c23dd0c16cefd26855303c16ca1b9b50a36d.tar.gz
Now combine the 'debian' directory we created earlier to the tar.gz file we downloaded
cd node-require-directory
uupdate -b ../node-require-directory-2.1.1.tar.gz
Now build the package and check with lintian
cd ../node-require-directory-2.1.1
dpkg-buildpackage
lintian ../node-require-directory_2.1.1-1_amd64.changes
```
Pirate Praveen Mon 10 Oct 2016 5:14AM
@arunnagathchandras can you try packaging 'set-blocking'? You can follow the steps given in previous comments. But in your case, download upstream tar.gz is much easy, you just have to use uscan --verbose --download-current-version
from 'set-blocking/node-set-blocking' directory (parent directory of created 'debian' directory).
Pirate Praveen Mon 10 Oct 2016 5:15AM
@noblephilip once the college reopens, ask everyone who gave their names for packaging to select a nodejs module from the above list and comment here about their selected module.
ARUN NAGATH CHANDRASEKHARAN Sun 16 Oct 2016 5:46AM
OK we will do..delay on series exam thata y....
Pirate Praveen Sun 16 Oct 2016 5:55AM
Thanks for the update. Let us know once the exam is over.
ARUN NAGATH CHANDRASEKHARAN Sun 16 Oct 2016 6:00AM
Within 2 ,3 days will be there on time.
Bobby Isac Tue 18 Oct 2016 1:49PM
@praveenarimbrathod I would appreciate it if you could give me some system admin tasks and remove me from packaging. that's not really my forte
Pirate Praveen Tue 18 Oct 2016 1:57PM
Sure. We can discuss Sys Admin tasks here https://codema.in/d/oA6Jd5pf/sys-admin-tasks-for-amal-jyothi-workshop-follow-up
[deactivated account] · Sat 8 Oct 2016 1:54PM
Some packages available for packaging are listed below. These are node modules (serverside javascript). Please select one and reply. We will guide you on further steps.
require-directory
set-blocking
is-fullwidth-code-point
y18n
window-size
which-module
chai
nyc
cpr
standard
standard-version