@@ -28,47 +28,22 @@ PATCHLEVEL="+maria"
28
28
LOGSTRING=" MariaDB build"
29
29
30
30
# Look up distro-version specific stuff.
31
- #
32
- # Libreadline changed to GPLv3. Old GPLv2 version is available, but it
33
- # is called different things on different versions.
31
+
34
32
CODENAME=" $( lsb_release -sc) "
35
- case " ${CODENAME} " in
36
- lucid) LIBREADLINE_DEV=' libreadline5-dev | libreadline-dev' ;;
37
- squeeze) LIBREADLINE_DEV=libreadline5-dev ;;
38
- * ) LIBREADLINE_DEV=libreadline-gplv2-dev ;;
39
- esac
40
33
41
34
# add libcrack2 (>= 2.9.0) as a build dependency
42
35
# but only where the distribution can possibly satisfy it
43
36
if apt-cache madison cracklib2| grep ' cracklib2 *| *2\.[0-8]\.' > /dev/null 2>&1
44
37
then
45
- MAYBE_LIBCRACK=' '
38
+ # Anything in MARIADB_OPTIONAL_DEBS is omitted from the resulting
39
+ # packages by snipped in rules file
46
40
MARIADB_OPTIONAL_DEBS=" ${MARIADB_OPTIONAL_DEBS} cracklib-password-check-10.1"
41
+ sed -i -e " /\\\$ {MAYBE_LIBCRACK}/d" debian/control
47
42
else
48
43
MAYBE_LIBCRACK=' libcrack2-dev (>= 2.9.0),'
44
+ sed -i -e " s/\\\$ {MAYBE_LIBCRACK}/${MAYBE_LIBCRACK} /g" debian/control
49
45
fi
50
46
51
- # Clean up build file symlinks that are distro-specific. First remove all, then set
52
- # new links.
53
- DISTRODIRS=" $( ls ./debian/dist) "
54
- for distrodir in ${DISTRODIRS} ; do
55
- DISTROFILES=" $( ls ./debian/dist/${distrodir} ) "
56
- for distrofile in ${DISTROFILES} ; do
57
- rm -f " ./debian/${distrofile} " ;
58
- done ;
59
- done ;
60
-
61
- # Set no symlinks for build files in the debian dir, so we avoid adding AppArmor on Debian.
62
- DISTRO=" $( lsb_release -si) "
63
- echo " Copying distribution specific build files for ${DISTRO} "
64
- DISTROFILES=" $( ls ./debian/dist/${DISTRO} ) "
65
- for distrofile in ${DISTROFILES} ; do
66
- rm -f " ./debian/${distrofile} "
67
- sed -e " s/\\\$ {LIBREADLINE_DEV}/${LIBREADLINE_DEV} /g" \
68
- -e " s/\\\$ {MAYBE_LIBCRACK}/${MAYBE_LIBCRACK} /g" \
69
- < " ./debian/dist/${DISTRO} /${distrofile} " > " ./debian/${distrofile} "
70
- chmod --reference=" ./debian/dist/${DISTRO} /${distrofile} " " ./debian/${distrofile} "
71
- done ;
72
47
73
48
# Adjust changelog, add new version.
74
49
#
@@ -79,8 +54,9 @@ dch -b -D ${CODENAME} -v "${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTR
79
54
echo " Creating package version ${UPSTREAM}${PATCHLEVEL} -${RELEASE_NAME}${RELEASE_EXTRA: +-${RELEASE_EXTRA} } 1~${CODENAME} ... "
80
55
81
56
# Build the package.
82
- #
83
- fakeroot dpkg-buildpackage -us -uc
57
+ # Pass -I so that .git and other unnecessary temporary and source control files
58
+ # will be ignored by dpkg-source when createing the tar.gz source package
59
+ fakeroot dpkg-buildpackage -us -uc -I
84
60
85
61
[ -e debian/autorm-file ] && rm -vf ` cat debian/autorm-file`
86
62
0 commit comments