Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 218df42

Browse files
authored
Merge pull request #675 from gnawux/armdeb
update binary packaging rules for 1.0 build
2 parents a2a257a + 0b8eecc commit 218df42

File tree

12 files changed

+20
-16
lines changed

12 files changed

+20
-16
lines changed

package/centos/rpm/SPECS/hyper-container.spec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ make %{?_smp_mflags}
3535
mkdir -p %{buildroot}%{_bindir}
3636
mkdir -p %{buildroot}%{_sysconfdir}
3737
mkdir -p %{buildroot}/lib/systemd/system/
38-
cp %{_builddir}/src/github.com/hyperhq/hyperd/{hyperctl,hyperd,vmlogd} %{buildroot}%{_bindir}
38+
cp %{_builddir}/src/github.com/hyperhq/hyperd/cmd/hyperd/hyperd %{buildroot}%{_bindir}
39+
cp %{_builddir}/src/github.com/hyperhq/hyperd/cmd/hyperctl/hyperctl %{buildroot}%{_bindir}
40+
cp %{_builddir}/src/github.com/hyperhq/hyperd/cmd/vmlogd/vmlogd %{buildroot}%{_bindir}
3941
cp -a %{_builddir}/src/github.com/hyperhq/hyperd/package/dist/etc/hyper %{buildroot}%{_sysconfdir}
4042
cp -a %{_builddir}/src/github.com/hyperhq/hyperd/package/dist/lib/systemd/system/hyperd.service %{buildroot}/lib/systemd/system/hyperd.service
4143
cp -a %{_builddir}/src/github.com/hyperhq/hyperd/package/dist/lib/systemd/system/hyper-vmlogd.service %{buildroot}/lib/systemd/system/hyper-vmlogd.service

package/centos/rpm/SPECS/hyperstart.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ make %{?_smp_mflags}
2727

2828
%install
2929
mkdir -p %{buildroot}%{_sharedstatedir}/hyper
30-
cp %{_builddir}/src/github.com/hyperhq/hyperstart/build/kernel %{buildroot}%{_sharedstatedir}/hyper/
30+
cp %{_builddir}/src/github.com/hyperhq/hyperstart/build/arch/`uname -m`/kernel %{buildroot}%{_sharedstatedir}/hyper/
3131
cp %{_builddir}/src/github.com/hyperhq/hyperstart/build/hyper-initrd.img %{buildroot}%{_sharedstatedir}/hyper/
3232

3333
%clean

package/debian/hypercontainer/debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Vcs-Git: git://github.com/hyperhq/hyperd.git
1212
Vcs-Browser: https://github.com/hyperhq/hyperd
1313

1414
Package: hypercontainer
15-
Architecture: amd64
15+
Architecture: amd64 arm64
1616
Depends: ${shlibs:Depends}, ${misc:Depends}
1717
Description: HyperContainer - Virtualized Container Runtime
1818
Hyper is a VM based docker engine, it start container image in

package/debian/hypercontainer/debian/rules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ override_dh_auto_build:
2525
override_dh_auto_install:
2626
echo "begin install"
2727
mkdir -p debian/hypercontainer/usr/bin
28-
cp -aT hyperd debian/hypercontainer/usr/bin/hyperd
29-
cp -aT hyperctl debian/hypercontainer/usr/bin/hyperctl
30-
cp -aT vmlogd debian/hypercontainer/usr/bin/vmlogd
28+
cp -aT cmd/hyperd/hyperd debian/hypercontainer/usr/bin/hyperd
29+
cp -aT cmd/hyperctl/hyperctl debian/hypercontainer/usr/bin/hyperctl
30+
cp -aT cmd/vmlogd/vmlogd debian/hypercontainer/usr/bin/vmlogd
3131
cp -r package/dist/* debian/hypercontainer/
3232
echo "end install"
3333

package/debian/hyperstart/debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Vcs-Git: git://github.com/hyperhq/hyperstart.git
1010
Vcs-Browser: https://github.com/hyperhq/hyperstart
1111

1212
Package: hyperstart
13-
Architecture: amd64
13+
Architecture: amd64 arm64
1414
Depends: ${shlibs:Depends}, ${misc:Depends}
1515
Description: The init Task for HyperContainer
1616
Hyperstart is the initrd for hyper VM, hyperstart

package/debian/hyperstart/debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ override_dh_auto_build:
2020

2121
override_dh_auto_install:
2222
mkdir -p debian/hyperstart/var/lib/hyper/
23-
cp -aT build/kernel debian/hyperstart/var/lib/hyper/kernel
23+
cp -aT build/arch/`uname -m`/kernel debian/hyperstart/var/lib/hyper/kernel
2424
cp -aT build/hyper-initrd.img debian/hyperstart/var/lib/hyper/hyper-initrd.img
2525

2626
override_dh_auto_clean:

package/fedora/rpm/SPECS/hyper-container.spec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ make %{?_smp_mflags}
3333
mkdir -p %{buildroot}%{_bindir}
3434
mkdir -p %{buildroot}%{_sysconfdir}
3535
mkdir -p %{buildroot}/lib/systemd/system/
36-
cp %{_builddir}/src/github.com/hyperhq/hyperd/{hyperctl,hyperd,vmlogd} %{buildroot}%{_bindir}
36+
cp %{_builddir}/src/github.com/hyperhq/hyperd/cmd/hyperd/hyperd %{buildroot}%{_bindir}
37+
cp %{_builddir}/src/github.com/hyperhq/hyperd/cmd/hyperctl/hyperctl %{buildroot}%{_bindir}
38+
cp %{_builddir}/src/github.com/hyperhq/hyperd/cmd/vmlogd/vmlogd %{buildroot}%{_bindir}
3739
cp -a %{_builddir}/src/github.com/hyperhq/hyperd/package/dist/etc/hyper %{buildroot}%{_sysconfdir}
3840
cp -a %{_builddir}/src/github.com/hyperhq/hyperd/package/dist/lib/systemd/system/hyperd.service %{buildroot}/lib/systemd/system/hyperd.service
3941
cp -a %{_builddir}/src/github.com/hyperhq/hyperd/package/dist/lib/systemd/system/hyper-vmlogd.service %{buildroot}/lib/systemd/system/hyper-vmlogd.service

package/fedora/rpm/SPECS/hyperstart.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ make %{?_smp_mflags}
2727

2828
%install
2929
mkdir -p %{buildroot}%{_sharedstatedir}/hyper
30-
cp %{_builddir}/src/github.com/hyperhq/hyperstart/build/kernel %{buildroot}%{_sharedstatedir}/hyper/
30+
cp %{_builddir}/src/github.com/hyperhq/hyperstart/build/arch/`uname -m`/kernel %{buildroot}%{_sharedstatedir}/hyper/
3131
cp %{_builddir}/src/github.com/hyperhq/hyperstart/build/hyper-initrd.img %{buildroot}%{_sharedstatedir}/hyper/
3232

3333
%clean

package/ubuntu/hypercontainer/debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Vcs-Git: git://github.com/hyperhq/hyperd.git
1212
Vcs-Browser: https://github.com/hyperhq/hyperd
1313

1414
Package: hypercontainer
15-
Architecture: amd64
15+
Architecture: amd64 arm64
1616
Depends: ${shlibs:Depends}, ${misc:Depends}
1717
Description: HyperContainer - Virtualized Container Runtime
1818
Hyper is a VM based docker engine, it start container image in

package/ubuntu/hypercontainer/debian/rules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ override_dh_auto_build:
2525
override_dh_auto_install:
2626
echo "begin install"
2727
mkdir -p debian/hypercontainer/usr/bin
28-
cp -aT hyperd debian/hypercontainer/usr/bin/hyperd
29-
cp -aT hyperctl debian/hypercontainer/usr/bin/hyperctl
30-
cp -aT vmlogd debian/hypercontainer/usr/bin/vmlogd
28+
cp -aT cmd/hyperd/hyperd debian/hypercontainer/usr/bin/hyperd
29+
cp -aT cmd/hyperctl/hyperctl debian/hypercontainer/usr/bin/hyperctl
30+
cp -aT cmd/vmlogd/vmlogd debian/hypercontainer/usr/bin/vmlogd
3131
cp -r package/dist/* debian/hypercontainer/
3232
echo "end install"
3333

0 commit comments

Comments
 (0)