-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmake-package.sh
More file actions
33 lines (28 loc) · 853 Bytes
/
make-package.sh
File metadata and controls
33 lines (28 loc) · 853 Bytes
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
31
32
33
#!/bin/bash
# This script will build a package for dcm. It uses fpm. Simple install of
# fpm is:
# sudo apt-get install ruby-dev gcc
# sudo gem install fpm
# sh ./make-package.sh
# -------- Variables that change --------
PREFIX='/opt/ona'
VERSION=$(bin/dcm.pl --version)
# default is deb.. change to rpm if you want (not currently tested)
TYPE=deb
# -------- Initial setup --------
# ----- Build the package ------
fpm -s dir -t ${TYPE} -n dcm -v ${VERSION} \
--force \
-x "**/.git/**" -x "**/.git" \
-a all \
--prefix ${PREFIX} \
--config-files ${PREFIX}/etc \
--template-scripts \
--deb-use-file-permissions \
--deb-no-default-config-files \
--url https://github.com/opennetadmin/dcm \
--vendor OpenNetAdmin \
--license "GPL v2" \
-m "Matt Pascoe (matt@opennetadmin.com)" \
--description "Command line interface for OpenNetAdmin" \
etc bin