diff --git a/curve-nginx/DEBIAN/control b/curve-nginx/DEBIAN/control new file mode 100644 index 0000000000..afb7188ee9 --- /dev/null +++ b/curve-nginx/DEBIAN/control @@ -0,0 +1,10 @@ +Package: curve-snapshotcloneserver-nginx +Section: +Priority: optional +Depends: +Suggests: +Architecture:amd64 +Installed-Size: +Maintainer: curve-dev +Provides: +Description: nginx for snapshotcloneserver diff --git a/mk-deb.sh b/mk-deb.sh index 7310c6ab20..9b23ff2436 100644 --- a/mk-deb.sh +++ b/mk-deb.sh @@ -114,6 +114,11 @@ if [ $? -ne 0 ] then exit fi +cp -r curve-nginx build/ +if [ $? -ne 0 ] +then + exit +fi mkdir -p build/curve-mds/usr/bin if [ $? -ne 0 ] @@ -305,6 +310,41 @@ then exit fi +mkdir -p build/curve-nginx/etc/curve/nginx/app/etc +if [ $? -ne 0 ] +then + exit +fi +cp -r ./curve-snapshotcloneserver-nginx/app/lib \ +build/curve-nginx/etc/curve/nginx/app +if [ $? -ne 0 ] +then + exit +fi +cp -r ./curve-snapshotcloneserver-nginx/app/src \ +build/curve-nginx/etc/curve/nginx/app +if [ $? -ne 0 ] +then + exit +fi +mkdir -p build/curve-nginx/etc/curve/nginx/conf +if [ $? -ne 0 ] +then + exit +fi +cp ./curve-snapshotcloneserver-nginx/conf/mime.types \ +build/curve-nginx/etc/curve/nginx/conf/ +if [ $? -ne 0 ] +then + exit +fi +cp -r ./curve-snapshotcloneserver-nginx/docker \ +build/curve-nginx/etc/curve/nginx/ +if [ $? -ne 0 ] +then + exit +fi + #step4 获取git提交版本信息,记录到debian包的配置文件 commit_id=`git show --abbrev-commit HEAD|head -n 1|awk '{print $2}'` if [ "$1" = "debug" ] @@ -320,6 +360,7 @@ echo ${version} >> build/curve-chunkserver/DEBIAN/control echo ${version} >> build/curve-tools/DEBIAN/control echo ${version} >> build/curve-monitor/DEBIAN/control echo ${version} >> build/curve-snapshotcloneserver/DEBIAN/control +echo ${version} >> build/curve-nginx/DEBIAN/control #step5 打包debian包 dpkg-deb -b build/curve-mds . @@ -328,6 +369,7 @@ dpkg-deb -b build/curve-chunkserver . dpkg-deb -b build/curve-tools . dpkg-deb -b build/curve-monitor . dpkg-deb -b build/curve-snapshotcloneserver . +dpkg-deb -b build/curve-nginx . #aws-c-common(commit=0302570a3cbabd98293ee03971e0867f28355086) #aws-checksums(commit=78be31b81a2b0445597e60ecb2412bc44e762a99) #aws-c-event-stream(commit=ad9a8b2a42d6c6ef07ccf251b5038b89487eacb3)