Skip to content

Commit dc1f95b

Browse files
committed
Package implementation
1 parent 8e132cc commit dc1f95b

File tree

7 files changed

+124
-0
lines changed

7 files changed

+124
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Delphix-Kernel Package Consolidation
2+
3+
This repository provides a meta-package for the Delphix Appliance. The
4+
meta-package is built by the
5+
[linux-pkg framework](https://github.com/delphix/linux-pkg) and provides a
6+
consolidation for the various kernel modules required by the Delphix Appliance.

configure.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
#
3+
# Copyright 2018 Delphix
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
#
18+
19+
if [[ -z "$KVERS" ]]; then
20+
export KVERS=$(uname -r)
21+
fi
22+
23+
unset PLATFORM
24+
for platform in generic aws gcp azure kvm; do
25+
if [[ "$KVERS" =~ .*${platform} ]]; then
26+
PLATFORM="$platform"
27+
break;
28+
fi
29+
done
30+
31+
if [[ -z "$PLATFORM" ]]; then
32+
echo "Error: Unable to determine platform for KVERS=$KVERS." >&2
33+
exit 1
34+
fi
35+
36+
sed "s/@@KVERS@@/$KVERS/g; s/@@PLATFORM@@/$PLATFORM/g" \
37+
debian/control.in >debian/control

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10

debian/control.in

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#
2+
# Copyright 2018 Delphix
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
Source: delphix-kernel
18+
Section: metapackages
19+
Priority: optional
20+
Maintainer: Delphix Engineering <[email protected]>
21+
Build-Depends: debhelper (>= 10), devscripts
22+
Standards-Version: 4.1.2
23+
24+
#
25+
# The following meta-package consolidates all the kernel packages required
26+
# by the Delphix Appliance for a given platform. Note that delphix-kernel
27+
# only has dependencies on kernel modules and tools that are built for a
28+
# specific version of the kernel. Any tools that are not specific to a
29+
# particular kernel version should not be included here.
30+
#
31+
Package: delphix-kernel-@@KVERS@@
32+
Provides: delphix-kernel-@@PLATFORM@@, delphix-kernel
33+
Architecture: any
34+
Depends: linux-@@PLATFORM@@,
35+
linux-tools-@@PLATFORM@@,
36+
zfs-modules-@@KVERS@@,
37+
linux-image-@@KVERS@@,
38+
connstat-module-@@KVERS@@
39+
Description: Kernel packages consolidation for the Delphix Appliance.
40+
This package consolidates all the version-specific kernel modules and tools
41+
required by the Delphix Appliance for a given platform.

debian/copyright

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
3+
Files: *
4+
Copyright: 2018 Delphix
5+
License: Apache-2.0
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
.
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
.
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
.
18+
On Debian systems, the complete text of the Apache License, Version 2
19+
can be found in "/usr/share/common-licenses/Apache-2.0".

debian/rules

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/make -f
2+
#
3+
# Copyright 2018 Delphix
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
%:
19+
dh $@

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (native)

0 commit comments

Comments
 (0)