mirror of
https://github.com/rgl/nexus-vagrant.git
synced 2026-09-30 00:31:11 +02:00
provision and use a apt (aka debian) repository
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
prefix = /usr
|
||||
|
||||
all: hello-world
|
||||
|
||||
hello-world: main.c
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDCFLAGS) -o $@ $^
|
||||
|
||||
install: hello-world
|
||||
install -D hello-world $(DESTDIR)$(prefix)/bin/hello-world
|
||||
|
||||
clean:
|
||||
rm -f hello-world
|
||||
|
||||
distclean: clean
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(prefix)/bin/hello-world
|
||||
|
||||
.PHONY: all install clean distclean uninstall
|
||||
@@ -0,0 +1,5 @@
|
||||
hello-world (1.0.0) bionic; urgency=low
|
||||
|
||||
* Hello World.
|
||||
|
||||
-- Alice Doe <alice.doe@example.com> Sat, 9 May 2020 08:09:10 +0100
|
||||
@@ -0,0 +1 @@
|
||||
10
|
||||
@@ -0,0 +1,17 @@
|
||||
Source: hello-world
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Maintainer: "Alice Doe" <alice.doe@example.com>
|
||||
Build-Depends: debhelper (>=11~)
|
||||
Standards-Version: 4.1.4
|
||||
Homepage: https://example.com
|
||||
|
||||
Package: hello-world
|
||||
Architecture: any
|
||||
Multi-Arch: foreign
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||
Description: classic hello world
|
||||
The classic hello world application.
|
||||
.
|
||||
It serves as an example package that is used
|
||||
to test the nexus apt-hosted repository.
|
||||
@@ -0,0 +1,24 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
|
||||
Files: *
|
||||
Copyright: 2020 Alice Doe
|
||||
License: MIT
|
||||
|
||||
License: MIT
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/make -f
|
||||
export DH_VERBOSE=1
|
||||
|
||||
%:
|
||||
dh $@
|
||||
@@ -0,0 +1 @@
|
||||
3.0 (native)
|
||||
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
printf("Hello, world!\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user