forked from apache/zookeeper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README_packaging.txt
65 lines (46 loc) · 1.73 KB
/
README_packaging.txt
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
README file for Packaging Notes
Requirement
-----------
gcc, cppunit and python-setuptools are required to build
C and python bindings.
On RHEL machine:
yum install cppunit
yum install python-setuptools
On Ubuntu:
apt-get --install cppunit
apt-get --install python-setuptools
Package build command
---------------------
Command to build Debian package: ant deb
Command to build RPM Package: ant rpm
rpm and deb packages are generated and placed in:
build/zookeeper*.[rpm|deb]
build/contrib/**.[rpm|deb]
Default package file structure layout
/usr/bin - User executable
/usr/sbin - System executable
/usr/libexec - Configuration boot trap script
/usr/lib - Native libraries
/usr/share/doc/zookeeper - Documents
/usr/share/zookeeper - Project files
/usr/share/zookeeper/template/conf - Configuration template files
/etc/zookeeper - Configuration files
/etc/init.d/zookeeper - OS startup script
Source file structure layout
---------------------
src/packages/update-zookeeper-env.sh
- setup environment variables and symlink $PREFIX/etc/zookeeper to
/etc/zookeeper.
- This script is designed to run in post installation, and pre-remove
phase of ZooKeeper package.
- Run update-zookeeper-env.sh -h to get a list of supported parameters.
src/packages/template
- Standard configuration template
src/packages/deb
Meta data for creating Debian package
src/packages/deb/init.d
Daemon start/stop script for Debian flavor of Linux
src/packages/rpm
Meta data for creating RPM package
src/packages/rpm/init.d
Daemon start/stop script for Redhat flavor of Linux