File: README.source

package info (click to toggle)
elog 3.1.2-1-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 4,268 kB
  • ctags: 1,388
  • sloc: ansic: 30,826; sh: 324; perl: 247; makefile: 228
file content (30 lines) | stat: -rw-r--r-- 1,336 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
elog for Debian
---------------

How to create a new debianized source package of elog from upstream source.

Replace $(ORIG_VERSION) with e.g. 3.0.0-1:
Steps:
1.  Create a new working folder, e.g. ~/elog_packaging and change to this folder
2.  Get and extract sources
      wget -q http://midas.psi.ch/elog/download/tar/elog-$(ORIG_VERSION).tar.gz
      tar xzf ./elog-$(ORIG_VERSION).tar.gz
3.  Rename elog folder:
      mv ./elog-3.0.0 ./elog-$(ORIG_VERSION)
    Move mxml/* into elog/src:
      mv ./mxml/* ./elog-$(ORIG_VERSION)/src
4.  Remove embedded source of other projects:
      rm -rf ./elog-$(ORIG_VERSION)/scripts/ckeditor
      rm -rf ./elog-$(ORIG_VERSION)/scripts/ckeditor.zip
      rm -rf ./elog-$(ORIG_VERSION)/scripts/jquery-1.11.1.min.js
      rm -rf ./elog-$(ORIG_VERSION)/scripts/progress/*
5.  Add and embedd original source of javascript progress bar
      wget -q https://github.com/usablica/progress.js/archive/v0.1.0.tar.gz
      tar xzf v0.1.0.tar.gz
      cp progress.js-0.1.0/README.md ./elog-$(ORIG_VERSION)/scripts/progress/
      cp progress.js-0.1.0/src/* ./elog-$(ORIG_VERSION)/scripts/progress/
6.  Pack it:
      tar czf ./$(shell date "+%Y%m%d-%H%M%S")-REPACKED-elog_$(ORIG_VERSION).orig.tar.gz -C ./ elog-$(ORIG_VERSION)

Running debian/rules get-orig-source does this repacking automatically.