Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# participate in the survey? | ||
# 0 - no | ||
# 1 - yes | ||
|
||
POPCORN_ENABLED=1 | ||
|
||
# method to use for submitting information | ||
# 0 - e-mail | ||
# 1 - HTTP POST | ||
|
||
POPCORN_METHOD=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
if [ -x /usr/bin/popcorn-client -a -f /etc/popcorn.conf ]; then | ||
. /etc/popcorn.conf | ||
/usr/bin/popcorn-client | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Name: popcorn | ||
Version: 0.1 | ||
Release: 0 | ||
Url: http://en.opensuse.org/Popcorn | ||
License: X11/MIT | ||
Group: System/Packages | ||
Summary: Popularity Contest (for RPM) | ||
Source0: popcorn-client | ||
Source1: popcorn.conf | ||
Source2: popcorn.cron | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-build | ||
BuildRequires: python rpm-python | ||
Requires: python | ||
|
||
%description | ||
Popularity Contest (for RPM) | ||
|
||
%prep | ||
cp %{SOURCE0} %{SOURCE1} %{SOURCE2} . | ||
|
||
%build | ||
|
||
%install | ||
install -D -m 0755 popcorn-client $RPM_BUILD_ROOT%{_bindir}/popcorn-client | ||
install -D -m 0644 popcorn.conf $RPM_BUILD_ROOT%{_sysconfdir}/popcorn.conf | ||
install -D -m 0755 popcorn.cron $RPM_BUILD_ROOT%{_sysconfdir}/cron.weekly/popcorn | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%files | ||
%{_bindir}/popcorn-client | ||
%{_sysconfdir}/popcorn.conf | ||
%{_sysconfdir}/cron.weekly/popcorn |