From d5d5ea77093e313bef153b1ae13985b6ea32aea1 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 14 Sep 2016 15:34:29 +0200 Subject: [PATCH 1/2] wakeonlan: Add version 0.41 Debian package description [1]: > Sends 'magic packets' to wake-on-LAN enabled ethernet adapters > > With this package you can remotely wake up and power on machines which > have motherboards or network cards that support 'Wake-on-Lan' packets. > > The tool allows you to wake up a single machine, or a group of machines. > > You need the MAC addresses of machines to construct the WOL packets, > but, in contrast to 'etherwake', you do not need root privileges to use > the program itself as UDP packets are used. As the upstream project Web site [2] is not accessible anymore, and the source cannot be downloaded from there, use the source archive from the Debian server. The page *Wake on LAN* in the ubuntuusers Wiki documents everything quite well [3]. The network device on the Dell OptiPlex 7010 is set up correctly by default, so could be stared over the LAN without any issues. [1] https://packages.debian.org/sid/wakeonlan [2] http://gsd.di.uminho.pt/jpo/software/wakeonlan/ [3] https://wiki.ubuntuusers.de/Wake_on_LAN/ --- wakeonlan.be0 | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100755 wakeonlan.be0 diff --git a/wakeonlan.be0 b/wakeonlan.be0 new file mode 100755 index 000000000..f963540d0 --- /dev/null +++ b/wakeonlan.be0 @@ -0,0 +1,85 @@ +#!/usr/bin/env beesh + +# BEE_VERSION wakeonlan-0.41-0 + +## this file was created by bee init and should be executed to build a +## bee-package. (Additional hints are located at the end of this file.) + +############################################################################### +## The source URL(s) define the location of the sources that will be +## downloaded. Version variables may be used to simplify reuse of this bee-file. + +SRCURL[0]="http://http.debian.net/debian/pool/main/w/wakeonlan/wakeonlan_${PKGVERSION}.orig.tar.gz" + +############################################################################### +## Add URLs/pathes to patch files to the PATCHURL array. +## The sources will be patched in the order of the array. + +# PATCHURL+=() + +############################################################################### +## Add filename patterns to the EXCLUDE array of files that should not +## be added to you package but may be present in the image directory. + +# EXCLUDE+=() + +############################################################################### +## Uncomment the next statement, if the software may not be able to be built +## outside the source directory and needs to be built inside the source +## directory. + +# build_in_sourcedir + +############################################################################### +## bee cannot detect buildtypes specified in subdirectories. +## Sometimes packages "hide" the real sources in a subdirectory named +## 'src' or 'cmake' or .. +## use 'sourcesubdir_append' to specify this directory if known. + +# sourcesubdir_append src + + +############################################################################### +## Change the default (auto-detected) steps to +## extract, patch, configure/setup, build and install the software. +## Make sure the mee_install function does install everything to the +## image directory "${D}" + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} +## by default this may be 'make install DESTDIR="${D}"' + +############################################################################### +## +## Additional hints: +## +## The name of this bee-file should follow the following naming convention: +## pkgname-pkgversion-pkgrevision.bee +## +## You may remove all comments as long as SRCURL[${PKGVERSION}] is set. +## +## Everything in this file will be executed in a bash environment. +## +## Build the package by executing +## './pkg-version-N.bee' or +## 'beesh ./pkg-version-N.bee' +## +## see http://beezinga.org/ +## From c13e29bc614e49ad4ebf6db951a6546c7ff46c53 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 14 Sep 2016 16:38:32 +0200 Subject: [PATCH 2/2] wakeonlan: Remove `perllocal.pod` from package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix bee’s conflict warning below, by removing the file `perllocal.pod` from the package. Normally, Perl modules append their section there, when installed. ``` [BEE] changing to image directory: /dev/shm/bee-root/wakeonlan/wakeonlan-0.41-0/image [BEE] -> creating package wakeonlan-0.41-0.x86_64.bee.tar.bz2 .. [BEE] /src/mariux/beeroot/packages/wakeonlan-0.41-0.x86_64.bee.tar.bz2 -rw-r--r-- root/system 2098 2016-09-14 15:40 CONTENT -rwxr-xr-x root/system 2631 2016-09-14 15:40 BUILD -rw-r--r-- root/system 439 2016-09-14 15:40 META -r--r--r-- root/system 4588 2016-09-14 15:40 /usr/local/share/man/man1/wakeonlan.1 -r-xr-xr-x root/system 5237 2016-09-14 15:40 /usr/local/bin/wakeonlan drwxr-xr-x root/system 0 2016-09-14 15:40 /usr/local/lib/perl5/ drwxr-xr-x root/system 0 2016-09-14 15:40 /usr/local/lib/perl5/site_perl/ drwxr-xr-x root/system 0 2016-09-14 15:40 /usr/local/lib/perl5/site_perl/5.12.1/ drwxr-xr-x root/system 0 2016-09-14 15:40 /usr/local/lib/perl5/site_perl/5.12.1/x86_64-linux-thread-multi/ drwxr-xr-x root/system 0 2016-09-14 15:40 /usr/local/lib/perl5/site_perl/5.12.1/x86_64-linux-thread-multi/auto/ drwxr-xr-x root/system 0 2016-09-14 15:40 /usr/local/lib/perl5/site_perl/5.12.1/x86_64-linux-thread-multi/auto/wakeonlan/ -rw-r--r-- root/system 163 2016-09-14 15:40 /usr/local/lib/perl5/site_perl/5.12.1/x86_64-linux-thread-multi/auto/wakeonlan/.packlist drwxr-xr-x root/system 0 2016-09-14 15:40 /usr/local/lib/perl5/5.12.1/ drwxr-xr-x root/system 0 2016-09-14 15:40 /usr/local/lib/perl5/5.12.1/x86_64-linux-thread-multi/ -rw-r--r-- root/system 242 2016-09-14 15:40 /usr/local/lib/perl5/5.12.1/x86_64-linux-thread-multi/perllocal.pod [BEE] -> saving bee-file wakeonlan.be0 .. [BEE] /src/mariux/beeroot/bee-files/wakeonlan-0.41-0.bee ‘/home/pmenzel/bee-files/./wakeonlan.be0’ -> ‘/src/mariux/beeroot/bee-files/wakeonlan-0.41-0.bee’ [BEE] Conflicts with installed package found: Donald-1.03-0.x86_64: [BEE] /usr/local/lib/perl5/5.12.1/x86_64-linux-thread-multi/perllocal.pod [BEE] Conflicts with installed package found: IO-Tty-1.10-0.x86_64: [BEE] /usr/local/lib/perl5/5.12.1/x86_64-linux-thread-multi/perllocal.pod [BEE] Conflicts with installed package found: Linux-Inotify2-1.22-0.x86_64: [BEE] /usr/local/lib/perl5/5.12.1/x86_64-linux-thread-multi/perllocal.pod [BEE] Conflicts with installed package found: Mojolicious-2.36-0.x86_64: [BEE] /usr/local/lib/perl5/5.12.1/x86_64-linux-thread-multi/perllocal.pod [BEE] Conflicts with installed package found: Term-ReadLine-Gnu-1.20-0.x86_64: [BEE] /usr/local/lib/perl5/5.12.1/x86_64-linux-thread-multi/perllocal.pod [BEE] Conflicts with installed package found: Time-Period-1.24-0.x86_64: [BEE] /usr/local/lib/perl5/5.12.1/x86_64-linux-thread-multi/perllocal.pod [BEE] Conflicts with installed package found: Tk-804.029-0.x86_64: [BEE] /usr/local/lib/perl5/5.12.1/x86_64-linux-thread-multi/perllocal.pod [BEE] Conflicts with installed package found: subversion-1.6.16-1.x86_64: [BEE] /usr/local/lib/perl5/5.12.1/x86_64-linux-thread-multi/perllocal.pod ``` --- wakeonlan.be0 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wakeonlan.be0 b/wakeonlan.be0 index f963540d0..2c0b935b9 100755 --- a/wakeonlan.be0 +++ b/wakeonlan.be0 @@ -66,6 +66,10 @@ SRCURL[0]="http://http.debian.net/debian/pool/main/w/wakeonlan/wakeonlan_${PKGVE #} ## by default this may be 'make install DESTDIR="${D}"' +mee_install_post() { + rm -r ${D}${PREFIX}/local/lib/perl5/5.12.1 +} + ############################################################################### ## ## Additional hints: