working commit
This commit is contained in:
+166
-5
@@ -101,7 +101,8 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno config.status.lineno
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_CLEAN_FILES = app/config/variant.go initrc/mstored.service \
|
||||
initrc/mstored chart/Chart.yaml chart/values.yaml
|
||||
initrc/mstored chart/Chart.yaml chart/values.yaml \
|
||||
debian/control debian/changelog
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)"
|
||||
PROGRAMS = $(bin_PROGRAMS) $(sbin_PROGRAMS)
|
||||
@@ -138,8 +139,10 @@ AM_V_CCLD = $(am__v_CCLD_@AM_V@)
|
||||
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
||||
am__v_CCLD_0 = @echo " CCLD " $@;
|
||||
am__v_CCLD_1 =
|
||||
SOURCES = $(mstorectl_SOURCES) $(mstored_SOURCES)
|
||||
DIST_SOURCES = $(mstorectl_SOURCES) $(mstored_SOURCES)
|
||||
SOURCES = $(mstorectl_SOURCES) $(mstored_SOURCES) \
|
||||
$(EXTRA_mstored_SOURCES)
|
||||
DIST_SOURCES = $(mstorectl_SOURCES) $(mstored_SOURCES) \
|
||||
$(EXTRA_mstored_SOURCES)
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
@@ -167,6 +170,8 @@ am__DIST_COMMON = $(srcdir)/Makefile.in \
|
||||
$(top_srcdir)/app/config/variant.go.in \
|
||||
$(top_srcdir)/chart/Chart.yaml.in \
|
||||
$(top_srcdir)/chart/values.yaml.in \
|
||||
$(top_srcdir)/debian/changelog.in \
|
||||
$(top_srcdir)/debian/control.in \
|
||||
$(top_srcdir)/initrc/mstored.in \
|
||||
$(top_srcdir)/initrc/mstored.service.in README.md config.guess \
|
||||
config.sub install-sh missing
|
||||
@@ -202,7 +207,9 @@ CPIO = @CPIO@
|
||||
CSCOPE = @CSCOPE@
|
||||
CTAGS = @CTAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DBUILDPACKAGE = @DBUILDPACKAGE@
|
||||
DEFS = @DEFS@
|
||||
DPKGSOURCE = @DPKGSOURCE@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
@@ -229,6 +236,7 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PODMAN = @PODMAN@
|
||||
ROOT_GROUP = @ROOT_GROUP@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
@@ -306,7 +314,141 @@ mstored_SOURCES = \
|
||||
cmd/mstored/main.go
|
||||
|
||||
CWD = $(shell pwd)
|
||||
EXTRA_mstored_SOURCES = \
|
||||
app/config/config.go \
|
||||
app/config/variant.go \
|
||||
app/descr/account.go \
|
||||
app/descr/blob.go \
|
||||
app/descr/file.go \
|
||||
app/descr/grant.go \
|
||||
app/descr/manifest.go \
|
||||
app/descr/response.go \
|
||||
app/descr/server.go \
|
||||
app/handler/aaafunc.go \
|
||||
app/handler/account.go \
|
||||
app/handler/blob.go \
|
||||
app/handler/file.go \
|
||||
app/handler/grant.go \
|
||||
app/handler/handler.go \
|
||||
app/handler/manifest.go \
|
||||
app/handler/notfound.go \
|
||||
app/handler/response.go \
|
||||
app/handler/service.go \
|
||||
app/handler/version.go \
|
||||
app/logger/logger.go \
|
||||
app/maindb/account.go \
|
||||
app/maindb/blob.go \
|
||||
app/maindb/file.go \
|
||||
app/maindb/grant.go \
|
||||
app/maindb/init.go \
|
||||
app/maindb/maindb.go \
|
||||
app/maindb/manifest.go \
|
||||
app/maindb/scheme.go \
|
||||
app/operator/account.go \
|
||||
app/operator/blob.go \
|
||||
app/operator/file.go \
|
||||
app/operator/grant.go \
|
||||
app/operator/imgaux.go \
|
||||
app/operator/manifest.go \
|
||||
app/operator/ociaux.go \
|
||||
app/operator/operator.go \
|
||||
app/operator/service.go \
|
||||
app/operator/version.go \
|
||||
app/router/bindobj.go \
|
||||
app/router/context.go \
|
||||
app/router/corsmw.go \
|
||||
app/router/loggingmw.go \
|
||||
app/router/pathc.go \
|
||||
app/router/recovermw.go \
|
||||
app/router/router.go \
|
||||
app/server/server.go \
|
||||
app/service/service.go \
|
||||
app/storage/storage.go \
|
||||
pkg/auxhttp/basic.go \
|
||||
pkg/auxhttp/crange.go \
|
||||
pkg/auxoci/ociaux.go \
|
||||
pkg/auxpwd/passwd.go \
|
||||
pkg/auxtool/cleandir.go \
|
||||
pkg/auxtool/fileex.go \
|
||||
pkg/auxtool/randstr.go \
|
||||
pkg/auxtool/tmpfile.go \
|
||||
pkg/auxtool/unixnow.go \
|
||||
pkg/auxutar/utar.go \
|
||||
pkg/auxuuid/uuid.go \
|
||||
pkg/auxx509/x509cert.go \
|
||||
pkg/client/account.go \
|
||||
pkg/client/client.go \
|
||||
pkg/client/fileaux.go \
|
||||
pkg/client/file.go \
|
||||
pkg/client/grant.go \
|
||||
pkg/client/httpcall.go \
|
||||
pkg/client/imageaux.go \
|
||||
pkg/client/imagedelete.go \
|
||||
pkg/client/imageinfo.go \
|
||||
pkg/client/imagepull.go \
|
||||
pkg/client/imagepush.go \
|
||||
pkg/client/service.go
|
||||
|
||||
EXTRA_DIST = \
|
||||
Containerfile \
|
||||
go.mod \
|
||||
go.sum \
|
||||
LICENSE.txt \
|
||||
README.md \
|
||||
app/logger/logger_test.go \
|
||||
app/maindb/file_test.go \
|
||||
app/maindb/grant_test.go \
|
||||
app/router/pathc_test.go \
|
||||
app/router/router_test.go \
|
||||
pkg/auxpwd/passwd_test.go \
|
||||
pkg/auxx509/x509cert_test.go \
|
||||
attic/account_test.go \
|
||||
attic/file_test.go \
|
||||
chart/Chart.yaml.in \
|
||||
chart/.gitignore \
|
||||
chart/.helmignore \
|
||||
chart/templates/configmap.yaml \
|
||||
chart/templates/deployment.yaml \
|
||||
chart/templates/_imagepath.tpl \
|
||||
chart/templates/_serviceport.tmpl \
|
||||
chart/templates/service.yaml \
|
||||
chart/templates/_storageclass.tpl \
|
||||
chart/templates/_storagesize.tpl \
|
||||
chart/templates/_userpass.tpl \
|
||||
chart/templates/volumeclaim.yaml \
|
||||
chart/values.yaml.in \
|
||||
debian/changelog.in \
|
||||
debian/compat \
|
||||
debian/control.in \
|
||||
debian/debhelper-build-stamp \
|
||||
debian/files \
|
||||
debian/.gitignore \
|
||||
debian/mstore-control.install \
|
||||
debian/mstore-control.postinst \
|
||||
debian/mstore-control.postrm \
|
||||
debian/mstore-control.preinst \
|
||||
debian/mstore-control.prerm \
|
||||
debian/mstore-service.install \
|
||||
debian/mstore-service.postinst \
|
||||
debian/mstore-service.postrm \
|
||||
debian/mstore-service.preinst \
|
||||
debian/mstore-service.prerm \
|
||||
debian/patches/series \
|
||||
debian/README.Debian \
|
||||
debian/rules \
|
||||
debian/source/format \
|
||||
debian/source/include-binaries \
|
||||
debian/watch \
|
||||
initrc/.gitignore \
|
||||
initrc/mstored.in \
|
||||
initrc/mstored.service.in \
|
||||
test/account_test.go \
|
||||
test/file_test.go \
|
||||
test/image_test.go \
|
||||
test/test-oci.img
|
||||
|
||||
DIST_DIR = $(shell pwd)/DIST
|
||||
BUILD_DIR = $(shell pwd)/BUILD
|
||||
IMAGE_REPO = localhost
|
||||
IMAGE_NAME = $(PACKAGE_NAME):$(PACKAGE_VERSION)
|
||||
IMAGE_TARNAME = $(PACKAGE_NAME)-$(PACKAGE_VERSION).img
|
||||
@@ -361,6 +503,10 @@ chart/Chart.yaml: $(top_builddir)/config.status $(top_srcdir)/chart/Chart.yaml.i
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
chart/values.yaml: $(top_builddir)/config.status $(top_srcdir)/chart/values.yaml.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
debian/control: $(top_builddir)/config.status $(top_srcdir)/debian/control.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
debian/changelog: $(top_builddir)/config.status $(top_srcdir)/debian/changelog.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
|
||||
@@ -813,10 +959,10 @@ uninstall-am: uninstall-binPROGRAMS uninstall-sbinPROGRAMS
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
mstorectl$(EXEEXT): $(mstorectl_SOURCES)
|
||||
mstorectl$(EXEEXT): $(mstorectl_SOURCES) $(EXTRA_mstored_SOURCES)
|
||||
env CGO_ENABLED=0 $(GO) build $(GOFLAGS) -o mstorectl$(EXEEXT) $(mstorectl_SOURCES)
|
||||
|
||||
mstored$(EXEEXT): $(mstored_SOURCES)
|
||||
mstored$(EXEEXT): $(mstored_SOURCES) $(EXTRA_mstored_SOURCES)
|
||||
env CGO_ENABLED=1 $(GO) build $(GOFLAGS) -o mstored$(EXEEXT) $(mstored_SOURCES)
|
||||
|
||||
run: $(mstored_SOURCES)
|
||||
@@ -849,6 +995,21 @@ build-chart:
|
||||
mkdir -p $(DIST_DIR)
|
||||
$(HELM) package --destination $(DIST_DIR) chart/
|
||||
|
||||
$(DIST_ARCHIVES): dist
|
||||
|
||||
package:: debian-package
|
||||
debian-package: $(DIST_ARCHIVES)
|
||||
mkdir -p $(BUILD_DIR)
|
||||
mv $(DIST_ARCHIVES) $(BUILD_DIR)
|
||||
cd $(BUILD_DIR) && $(AMTAR) -xf $(DIST_ARCHIVES)
|
||||
cd $(BUILD_DIR)/$(distdir) && ./configure --prefix=/usr
|
||||
cd $(BUILD_DIR)/$(distdir) && $(MAKE) clean
|
||||
cd $(BUILD_DIR)/$(distdir) && $(DPKGSOURCE) -i --before-build .
|
||||
cd $(BUILD_DIR)/$(distdir) && $(DBUILDPACKAGE) -nc -us -uc -ui -i -b
|
||||
mkdir -p $(DIST_DIR)
|
||||
$(CP) $(BUILD_DIR)/*.deb $(DIST_DIR)
|
||||
rm -rf $(BUILD_DIR)
|
||||
|
||||
install-data-local:
|
||||
test -z $(DESTDIR)$(srv_confdir) || $(MKDIR_P) $(DESTDIR)$(srv_confdir)
|
||||
test -z $(DESTDIR)$(srv_logdir) || $(MKDIR_P) $(DESTDIR)$(srv_logdir)
|
||||
|
||||
Reference in New Issue
Block a user