Squashed commit of the following:

commit db13e6eacff1819b49e966e52099b61c0856e07b
Author: wanghaibin <wanghaibin@qiyi.com>
Date:   Fri Jun 5 17:03:11 2020 +0800

    modify spec

commit 45f79bc576298d0683e400078d52c1be3e452969
Author: wanghaibin <wanghaibin@qiyi.com>
Date:   Fri Jun 5 16:55:00 2020 +0800

    modify spec

commit 328c363acb9ba691b12afdd9e1a4bcd96319d92b
Author: wanghaibin <wanghaibin@qiyi.com>
Date:   Fri Jun 5 16:53:09 2020 +0800

    modify spec

commit 3a6d6fdb48dbb575b2bf62e8acc2b78ef552c818
Author: wanghaibin <wanghaibin@qiyi.com>
Date:   Fri Jun 5 16:48:52 2020 +0800

    modify makefile

commit 779896221149e72929413c6c4e1ba34f1bf14ec5
Author: wanghaibin <wanghaibin@qiyi.com>
Date:   Fri Jun 5 16:45:01 2020 +0800

    modify Makefile

commit 0efba25a93acde43af531e1928568826b3b3e855
Author: wanghaibin <wanghaibin@qiyi.com>
Date:   Fri Jun 5 16:38:27 2020 +0800

    modify spec
This commit is contained in:
wanghaibin 2020-06-05 17:11:51 +08:00
parent c4ae1840d7
commit b42481dec0
2 changed files with 26 additions and 34 deletions

View File

@ -124,10 +124,7 @@ clean cl:
acl_master: all_lib
@(cd app/master/daemon; make $(MAKE_ARGS); make install)
@(cd app/master/tools/lib_global; make $(MAKE_ARGS);)
@(cd app/master/tools/master_ctld; make $(MAKE_ARGS); make install)
@(cd app/master/tools/master_ctl; make $(MAKE_ARGS); make install)
@(cd app/master/tools/master_guard; make $(MAKE_ARGS); make install)
@(cd app/master/tools/master_monitor; make $(MAKE_ARGS); make install)
packinstall:
@(echo "")
@ -141,10 +138,7 @@ packinstall:
$(shell mkdir -p ./dist/master/libexec/$(RPATH))
$(shell mkdir -p ./dist/master/bin/$(RPATH))
@(cd app/master/daemon; make install)
@(cd app/master/tools/master_ctld; make install)
@(cd app/master/tools/master_ctl; make install)
@(cd app/master/tools/master_guard; make install)
@(cd app/master/tools/master_monitor; make install)
@(cd lib_fiber; make)
@echo "copying app/master/daemon/acl_master $(BIN_PATH)"
@cp -f app/master/daemon/acl_master $(BIN_PATH)

View File

@ -28,15 +28,15 @@ Requires(postun): /sbin/ldconfig
%description -n acl-master
acl master framework
%package -n acl-tools
Summary: acl tools
Release: %{release_id}
License: IBM
Group: System Environment/Tools
Requires: acl-master
%description -n acl-tools
acl tools
#%package -n acl-tools
#Summary: acl tools
#Release: %{release_id}
#License: IBM
#Group: System Environment/Tools
#Requires: acl-master
#
#%description -n acl-tools
#acl tools
%prep
%setup -q
@ -80,15 +80,15 @@ if [ "$1" -ge "1" ]; then
service master masterrestart > /dev/null 2>&1 ||:
fi
%post -n acl-tools
if [ "$1" == "1" ]; then
/opt/soft/acl-master/sh/tools-ctl start
fi
%preun -n acl-tools
if [ "$1" == "0" ]; then
/opt/soft/acl-master/sh/tools-ctl stop
fi
#%post -n acl-tools
#if [ "$1" == "1" ]; then
# /opt/soft/acl-master/sh/tools-ctl start
#fi
#
#%preun -n acl-tools
#if [ "$1" == "0" ]; then
# /opt/soft/acl-master/sh/tools-ctl stop
#fi
#%postun -n acl-tools
#if [ "$1" -ge "1" ]; then
@ -109,27 +109,25 @@ fi
%files -n acl-master
%defattr(-,root,root)
/opt/soft/acl-master/bin/master_ctl
/opt/soft/acl-master/conf/main.cf
#/opt/soft/acl-master/conf/service/samples
/opt/soft/acl-master/conf/service
/opt/soft/acl-master/libexec/acl_master
/opt/soft/acl-master/sbin
# just including master.sh reload.sh start.sh stop.sh
/opt/soft/acl-master/sh/master.sh
/opt/soft/acl-master/sh/reload.sh
/opt/soft/acl-master/sh/start.sh
/opt/soft/acl-master/sh/stop.sh
/opt/soft/acl-master/sh
/opt/soft/acl-master/var
#/opt/soft/services/acl-master.json
/etc/init.d/master
%exclude /opt/soft/acl-master/conf/service/master_*
%files -n acl-tools
%defattr(-,root,root)
/opt/soft/acl-master/bin/master_ctl
/opt/soft/acl-master/sh/tools-ctl
/opt/soft/acl-master/conf/service/master_*
/opt/soft/acl-master/libexec/master_*
#%files -n acl-tools
#%defattr(-,root,root)
#/opt/soft/acl-master/bin/master_ctl
#/opt/soft/acl-master/sh/tools-ctl
#/opt/soft/acl-master/conf/service/master_*
#/opt/soft/acl-master/libexec/master_*
#/opt/soft/services/acl-tools.json
%changelog