d
This commit is contained in:
13
makefile
13
makefile
@@ -18,6 +18,7 @@ BuildOMCEtcDir = $(BuildOMCDir)/etc
|
|||||||
BuildLibDir = $(BuildDir)/lib
|
BuildLibDir = $(BuildDir)/lib
|
||||||
BuildLibSystemDir = $(BuildLibDir)/systemd/system
|
BuildLibSystemDir = $(BuildLibDir)/systemd/system
|
||||||
DebBuildDir = $(EmsBuildRoot)/debbuild
|
DebBuildDir = $(EmsBuildRoot)/debbuild
|
||||||
|
DebBuild2204Dir = $(EmsBuildRoot)/debbuild/22.04
|
||||||
RpmBuildDir = $(EmsBuildRoot)/rpmbuild
|
RpmBuildDir = $(EmsBuildRoot)/rpmbuild
|
||||||
OmcInstallDir = /usr/local/omc
|
OmcInstallDir = /usr/local/omc
|
||||||
ReleaseDir = $(EmsBuildRoot)/release
|
ReleaseDir = $(EmsBuildRoot)/release
|
||||||
@@ -89,6 +90,12 @@ dist:
|
|||||||
--exclude=../initems/initems
|
--exclude=../initems/initems
|
||||||
|
|
||||||
deb: $(BINNAME)
|
deb: $(BINNAME)
|
||||||
|
ifeq ($(shell lsb_release -r --short), 22.04)
|
||||||
|
DebBuildDir = $(DebBuild2204Dir)
|
||||||
|
DebPkgFile = $(PROJECT)-$(VERSION)-22.04-$(Release).$(PLATFORM).deb
|
||||||
|
else
|
||||||
|
DebPkgFile = $(PROJECT)-$(VERSION)-$(Release).$(PLATFORM).deb
|
||||||
|
endif
|
||||||
cp -rf $(RestagentDir)/$(RESTAGENT) $(BuildOMCBinDir)
|
cp -rf $(RestagentDir)/$(RESTAGENT) $(BuildOMCBinDir)
|
||||||
cp -rf $(CrontaskDir)/$(CRONTASK) $(BuildOMCBinDir)
|
cp -rf $(CrontaskDir)/$(CRONTASK) $(BuildOMCBinDir)
|
||||||
cp -rf $(SshSvcDir)/$(SshSvcBin) $(BuildOMCBinDir)
|
cp -rf $(SshSvcDir)/$(SshSvcBin) $(BuildOMCBinDir)
|
||||||
@@ -112,11 +119,7 @@ deb: $(BINNAME)
|
|||||||
#sed -i.bak 's/YYYYMMDD/$(shell date +"%Y%m%d")/g' $(DebBuildDir)/DEBIAN/control
|
#sed -i.bak 's/YYYYMMDD/$(shell date +"%Y%m%d")/g' $(DebBuildDir)/DEBIAN/control
|
||||||
sed -i 's/YYYYMMDD/$(shell date +"%Y%m%d")/g' $(DebBuildDir)/DEBIAN/control
|
sed -i 's/YYYYMMDD/$(shell date +"%Y%m%d")/g' $(DebBuildDir)/DEBIAN/control
|
||||||
sed -i '73 s/user: root/user: agtuser/g' $(DebBuildDir)/usr/local/omc/etc/default/restconf.yaml
|
sed -i '73 s/user: root/user: agtuser/g' $(DebBuildDir)/usr/local/omc/etc/default/restconf.yaml
|
||||||
ifeq ($(shell lsb_release -r --short), 22.04)
|
dpkg -b $(DebBuildDir) $(ReleaseDebs)/$(DebPkgFile)
|
||||||
dpkg -b $(DebBuildDir) $(ReleaseDebs)/$(PROJECT)-$(VERSION)-22.04-$(Release).$(PLATFORM).deb
|
|
||||||
else
|
|
||||||
dpkg -b $(DebBuildDir) $(ReleaseDebs)/$(PROJECT)-$(VERSION)-$(Release).$(PLATFORM).deb
|
|
||||||
endif
|
|
||||||
|
|
||||||
rpm: $(BINNAME)
|
rpm: $(BINNAME)
|
||||||
cp -rf $(RestagentDir)/$(RESTAGENT) $(BuildOMCBinDir)
|
cp -rf $(RestagentDir)/$(RESTAGENT) $(BuildOMCBinDir)
|
||||||
|
|||||||
Binary file not shown.
BIN
tshark/ubuntu22.04/xsltproc
Normal file
BIN
tshark/ubuntu22.04/xsltproc
Normal file
Binary file not shown.
Reference in New Issue
Block a user