[Pkg-wmaker-commits] [wmfrog] 140/145: debian/patches: (install_perl_script_in_usr_share.patch) Install weather.pl in /usr/share/wmfrog to conform to the Filesystem Hierarchy Standard.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sun Aug 23 05:46:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmfrog.
commit 044d8a852eea965b3f9186aa3600adf6ddc28065
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Fri Jan 2 21:32:04 2015 -0600
debian/patches: (install_perl_script_in_usr_share.patch) Install weather.pl
in /usr/share/wmfrog to conform to the Filesystem Hierarchy Standard.
---
.../patches/install_perl_script_in_usr_share.patch | 32 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 33 insertions(+)
diff --git a/debian/patches/install_perl_script_in_usr_share.patch b/debian/patches/install_perl_script_in_usr_share.patch
new file mode 100644
index 0000000..53647df
--- /dev/null
+++ b/debian/patches/install_perl_script_in_usr_share.patch
@@ -0,0 +1,32 @@
+Description: Install weather.pl in /usr/share/wmfrog.
+ Architecture-independent files should go in /usr/share to conform to the
+ Filesystem Hierarchy Standard.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2015-01-02
+
+--- a/Src/Makefile
++++ b/Src/Makefile
+@@ -23,10 +23,10 @@
+ $(CC) $(LDFLAGS) $(SYSTEM) -o wmfrog $^ $(INCDIR) $(LIBDIR) $(LIBS)
+ install:
+ mkdir -p "$(DESTDIR)$(PREFIX)/bin"
+- mkdir -p "$(DESTDIR)$(PREFIX)/lib/wmfrog"
++ mkdir -p "$(DESTDIR)$(PREFIX)/share/wmfrog"
+ mkdir -p "$(DESTDIR)$(PREFIX)/share/man/man1"
+ cp wmfrog "$(DESTDIR)$(PREFIX)/bin"
+- cp weather.pl "$(DESTDIR)$(PREFIX)/lib/wmfrog"
++ cp weather.pl "$(DESTDIR)$(PREFIX)/share/wmfrog"
+ cp wmfrog.1 "$(DESTDIR)$(PREFIX)/share/man/man1"
+ clean:
+ for i in $(OBJS) ; do \
+--- a/Src/wmfrog.c
++++ b/Src/wmfrog.c
+@@ -492,7 +492,7 @@
+ /*
+ * Execute Perl script to grab the Latest METAR Report
+ */
+- snprintf(command, 1024, "/usr/lib/wmfrog/weather.pl %s %s", StationID, folder);
++ snprintf(command, 1024, "/usr/share/wmfrog/weather.pl %s %s", StationID, folder);
+ //printf("Retrieveing data\n");
+ ign = system(command);
+ snprintf(FileName, 128, "%s/%s", folder, StationID);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..58d7307
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+install_perl_script_in_usr_share.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmfrog.git
More information about the Pkg-wmaker-commits
mailing list