forked from grepory/metrilyx-2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pkgwrap.yml
78 lines (69 loc) · 2.06 KB
/
.pkgwrap.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Distributions:
- name: centos
release: 6
build_deps:
- git
- gcc
- gcc-c++
- gcc-gfortran
- atlas-devel
- blas-devel
- libffi-devel
- python-setuptools
- python-devel
deps:
- libgfortran
- libffi
- blas
- atlas
- libuuid
- uuid
- python-importlib
- nginx
build_cmd:
- sudo make .build deps
post_install:
- "[ -f /opt/metrilyx/etc/metrilyx/metrilyx.conf ] || cp /opt/metrilyx/etc/metrilyx/metrilyx.conf.sample /opt/metrilyx/etc/metrilyx/metrilyx.conf"
- "[ -f /opt/metrilyx/data/metrilyx.sqlite3 ] || cp /opt/metrilyx/data/metrilyx.sqlite3.default /opt/metrilyx/data/metrilyx.sqlite3"
- "( id metrilyx > /dev/null 2>&1 ) || useradd metrilyx"
- "chown -R metrilyx /opt/metrilyx"
- "echo 'source /opt/metrilyx/bin/set-run-env.sh' >> ~metrilyx/.bashrc"
- name: ubuntu
release: 14.04
build_cmd:
- sudo make .build deps
build_deps:
- build-essential
- make
- g++
- gfortran
- libuuid1
- uuid-runtime
- python-setuptools
- python-dev
- libpython2.7
- python-pip
- git-core
- libffi-dev
- libatlas-dev
- libblas-dev
- python-numpy
deps:
- libuuid1
- uuid-runtime
- python-setuptools
- python-dev
- libpython2.7
- python-pip
- libffi-dev
- libatlas-dev
- libblas-dev
- python-numpy
post_install:
- "[ -f /opt/metrilyx/etc/metrilyx/metrilyx.conf ] || cp /opt/metrilyx/etc/metrilyx/metrilyx.conf.sample /opt/metrilyx/etc/metrilyx/metrilyx.conf"
- "[ -f /opt/metrilyx/data/metrilyx.sqlite3 ] || cp /opt/metrilyx/data/metrilyx.sqlite3.default /opt/metrilyx/data/metrilyx.sqlite3"
- "( id metrilyx > /dev/null 2>&1 ) || useradd metrilyx"
- "chown -R metrilyx /opt/metrilyx"
- "echo 'source /opt/metrilyx/bin/set-run-env.sh' >> ~metrilyx/.bashrc"
Package:
build_env: python