...
Code Block | ||
---|---|---|
| ||
rm id_rsa.pub |
Doing the Packaging
Navigate to the packaging folders
Code Block | ||
---|---|---|
| ||
cd code/packages/ |
This will get all the folders from the pepfar files
Code Block | ||
---|---|---|
| ||
git clone git@github.com:pepfar-datim/OHIE.git |
Navigate to the packaging folder:
Code Block | ||
---|---|---|
| ||
cd adxAdapter/ |
This is not yet executable and the following will make it executable to make it run:
Code Block | ||
---|---|---|
| ||
chmod +x gradlew
./gradlew war
cd build
cd libs
cp adxAdapter.war /vagrant/code/packages/adxadapter2/
cd ..
cp adxAdapter.properties.sample /vagrant/code/packages/adxadapter2/
cd /vagrant/code/packages/adxadapter2/
tar czf adxadapter-1.0.0.tar.gz adxAdapter.*
rm adxAdapter.*
dh_make -p adxadapter_1.0.0 -f adxadapter-1.0.0.tar.gz |
This needs to be in double folder names down because the build file/folder generated is kept //one level up and it was a mistake to not do it this way earlier:
Code Block | ||
---|---|---|
| ||
mkdir adxadapter2
cp -r debian adxadapter2/ |
This will extract the data from a tar.gz file
Code Block | ||
---|---|---|
| ||
tar zxf adxadapter-1.0.0.tar.gz -C adxadapter2/
cd adxadapter2/ |
-p allows to create all the folders that are not yet created in the below levels:
Code Block | ||
---|---|---|
| ||
mkdir -p var/lib/tomcat7/webapps/
cp adxAdapter.war var/lib/tomcat7/webapps/
rm *.war |
Rename the file:
Code Block | ||
---|---|---|
| ||
mv adxAdapter.properties.sample adxAdapter.properties |
Entering the packaging folders:
Code Block | ||
---|---|---|
| ||
mkdir -p etc/adxadapter/
mv adxAdapter.properties etc/adxadapter/
cd debian/
rm *.ex
rm *.EX
vim control |
Keep section as misc and homepage should be if the have any page, depends needs to be include any packages needed, architecture is changed to amd64
Source: adxadapter
Section: misc
Priority: optional
Maintainer: yourname <youremailid>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.4
Homepage:
Package: adxadapter
Architecture: amd64
Depends: npm, nodejs
Description: ADX adapter sample package
Clear out the Copyright or include one as per your needs:
Code Block | ||
---|---|---|
| ||
vim copyright |
Include only if required for a sample one - clear this out
Code Block | ||
---|---|---|
| ||
rm README.Debian
vim README.source |
adxadapter for Debian
---------------------
use gradlew without parameters script to set up gradle (only needed the first time)
projects users 1.7 java compliance, so at least 1.7 should be present
use gradlew eclipse to set up eclipse project. it also downloads dependencies on the first run.
if adding new dependencies, update gradle.build and rerun gradlew eclipse to update eclipse classpath.
Alternatively, gradlew eclipseClasspath can be used to only update eclipse classpath, and not
affect other project files.
to generate war file, use gradlew war command. it places war file in build/libs directory.
-- yourname <youremailid> Fri, 15 Apr 2016 15:33:01 +0000
The last line is important for this as that matches with the GPG key in launchpad
Code Block | ||
---|---|---|
| ||
vim source/format |
3.0 (native) |
Code Block | ||
---|---|---|
| ||
vim rules |