Browse Source

Removed useless src directory

pull/1/head
Titouan Rigoudy 10 years ago
parent
commit
4bb386b041
6 changed files with 44 additions and 19 deletions
  1. +9
    -12
      Makefile
  2. +0
    -0
      init-headphone
  3. +0
    -0
      init-headphone.modules
  4. +0
    -0
      init-headphone.service
  5. +35
    -0
      init-headphone.spec
  6. +0
    -7
      src/Makefile

+ 9
- 12
Makefile View File

@ -1,15 +1,12 @@
PROG=init-headphone
VERSION=0.2.0
SRCDIR=src
TARBALL=${PROG}-${VERSION}.tar.gz
SBINDIR=usr/sbin
SYSCONFIGDIR=etc
LIBDIR=usr/lib
all: pkg
all:
pkg: ${TARBALL}
${TARBALL}: ${SRCDIR}/*
tar -czf $@ $^
clean:
rm -rf ${TARBALL}
install:
install -Dm 755 init-headphone ${DESTDIR}/${SBINDIR}/init-headphone
install -Dm 755 init-headphone.modules ${DESTDIR}/${SYSCONFIGDIR}/sysconfig/modules/init-headphone.modules
install -Dm 755 init-headphone.service ${DESTDIR}/${LIBDIR}/systemd/system/init-headphone.service
systemctl enable init-headphone

src/init-headphone → init-headphone View File


src/init-headphone.modules → init-headphone.modules View File


src/init-headphone.service → init-headphone.service View File


+ 35
- 0
init-headphone.spec View File

@ -0,0 +1,35 @@
Name: init-headphone
Version: 0.2.0
Release: 1%{?dist}
Summary: Reactivates the headphone jack on Clevo W230SS after suspend
License: GPLv2
URL: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1313904/
Source0: https://github.com/letitz/%{name}/archive/master.tar.gz
BuildArch: noarch
Requires: i2c-tools-python
%description
This script fixes a bug in Clevo W230SS-based laptops where the headphone jack
would not work anymore after a resume from suspend.
%prep
%setup -qn %{name}-master
%build
%install
make install DESTDIR=%{buildroot}
%files
%{_sbindir}/init-headphone
%{_sysconfdir}/sysconfig/modules/init-headphone.modules
%{_libdir}/systemd/system/init-headphone.service
%changelog

+ 0
- 7
src/Makefile View File

@ -1,7 +0,0 @@
all:
install:
install -Dm 755 init-headphone ${DESTDIR}/usr/sbin/init-headphone
install -Dm 755 init-headphone.modules ${DESTDIR}/etc/sysconfig/modules/init-headphone.modules
install -Dm 755 init-headphone.service ${DESTDIR}/usr/lib/systemd/system/init-headphone.service

Loading…
Cancel
Save