3 Package for $j2se_title
6 This package has been automatically created with java-package ($version).
7 All files from the original distribution should have been installed in
8 the directory $jvm_base$j2se_name. Please take a look at this directory for
15 $j2se_package ($j2se_version) unstable; urgency=low
17 * This package was created with java-package ($version).
19 -- $maintainer_name <$maintainer_email> $( date -R )
26 Section: non-free/devel
28 Maintainer: $maintainer_name <$maintainer_email>
29 Build-Depends: debhelper (>= 9)
30 Standards-Version: 3.9.5
37 ----------------------------------------------------------------------
39 This file contains a copy of all copyright files found in the original
40 distribution. The original copyright files and further information can
41 be found in the directory $jvm_base$j2se_name and its
44 ----------------------------------------------------------------------
48 find * -type f -iname copyright ! -path debian/copyright |
54 ----------------------------------------------------------------------
60 ----------------------------------------------------------------------
74 dh_compress \$(shell find $j2se_name/man/ -type f ! -name '*.gz' -printf '${jvm_base##/}/%p\n')
76 override_dh_shlibdeps:
77 dh_shlibdeps --exclude=fxavcodecplugin -l\$(shell find $j2se_name -type f -name '*.so*' -printf '${jvm_base##/}/%h\n' | sort -u | tr '\n' ':' | sed 's/:\$\$//')
81 j2se_install_scripts() {
82 cat > "$debian_dir/postinst" << EOF
87 if [ "\$1" = configure ]; then
89 # Common functions for all install scripts
91 # install_alternatives program_base programs
92 install_alternatives() {
95 for program in \$*; do
96 if [[ -f "\$program_base/\$program" ]]; then
97 update-alternatives \\
98 --install "/usr/bin/\$program" "\$program" "\$program_base/\$program" $j2se_priority \\
99 --slave "/usr/share/man/man1/\$program.1.gz" "\$program.1.gz" "$jvm_base$j2se_name/man/man1/\$program.1.gz"
104 # install_alternatives_no_man program_base programs
105 install_no_man_alternatives() {
108 for program in \$*; do
109 if [[ -f "\$program_base/\$program" ]]; then
110 update-alternatives --install "/usr/bin/\$program" "\$program" "\$program_base/\$program" $j2se_priority
115 # install_browser_plugin link_path link_name plugin_name plugin
116 install_browser_plugin() {
117 local link_path="\$1"
118 local link_name="\$2"
119 local plugin_name="\$3"
121 [ -d "\$link_path" ] || install -d -m 755 "\$link_path"
122 if [[ -f "\$plugin" ]]; then
123 update-alternatives --install "\$link_path/\$link_name" "\$plugin_name" "\$plugin" $j2se_priority
128 eval "$j2se_install" >> "$debian_dir/postinst"
130 cat >> "$debian_dir/postinst" << EOF
137 chmod 755 "$debian_dir/postinst"
139 cat > "$debian_dir/prerm" << EOF
145 remove | deconfigure)
147 # Common functions for all remove scripts
149 # remove_alternatives program_base programs
150 remove_alternatives() {
153 for program in \$*; do
154 update-alternatives --remove "\$program" "\$program_base/\$program"
158 # remove_browser_plugin plugin_name plugin
159 remove_browser_plugin() {
160 local plugin_name="\$1"
162 update-alternatives --remove "\$plugin_name" "\$plugin"
166 eval "$j2se_remove" >> "$debian_dir/prerm"
168 cat >> "$debian_dir/prerm" << EOF
176 chmod 755 "$debian_dir/prerm"
182 j2se_version="$j2se_version"
183 maintainer_name="$maintainer_name"
184 maintainer_email="$maintainer_email"
185 date="$( date +%Y/%m/%d )"
189 # jinfos prefix program_base programs
194 for program in $*; do
195 echo "$prefix $program $program_base$program"
200 if [ -n "$build_source" ]; then
201 local source_dir=${j2se_package}-${j2se_version}
202 echo " copy ${source_dir} into directory $working_dir/"
203 rm -rf "$working_dir/${source_dir}"
204 cp -r "$package_dir" "$working_dir/${source_dir}"
207 The Debian source package has been created in the current directory.
208 You can build the package with:
211 dpkg-buildpackage -b -uc -us
216 echo "Create debian package:"
218 dpkg-buildpackage -b -uc -us
220 local deb_filename="$( echo "${j2se_package}_"*.deb )"
221 echo " copy $deb_filename into directory $working_dir/"
222 cp "$deb_filename" "$working_dir/"
223 if [ -n "$genchanges" ]; then
224 echo " dpkg-genchanges"
225 local changes_filename="${deb_filename%.deb}.changes"
226 echo " copy $changes_filename into directory $working_dir/"
227 cp "$changes_filename" "$working_dir/"
231 The Debian package has been created in the current directory.
232 You can install the package as root with:
234 dpkg -i $deb_filename