Joachim Nilsson
c9b79b5d85
No need to have +1 on sizeof path prefix
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
2e61462211
Use snprintf() instead of strncpy(), both safer and simpler
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
b73cf341e4
Mention @CameronNemo's fork brillo in heading
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
b4291f7d0e
Merge pull request #53 from troglobit/packaging
ChangeLog updates, Debian packaging support
il y a 6 ans
Joachim Nilsson
3d2248b756
Make .deb package part of std release target
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
c459949c47
Minor snag, $prefix prefixed to udev rules means /usr/lib/ not /lib
We may need to drop the $prefix to the udev rules from configure.ac
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
b992bc0e9d
Fix #47 : Initial debian/ packaging for upcoming v1.2 release
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
3aaee6a865
Update for upcoming v1.2 release
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
8f2e5999c4
Rename license file, GNU licenses are commonly named COPYING
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
35b4b54dcc
Convert to Markdown and update with all official releases
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
aeeb063aa8
Rename and prepare to convert to Markdown
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
6ef91ad260
Merge pull request #52 from troglobit/doc-updates
Doc updates
il y a 6 ans
Joachim Nilsson
8571f803fb
Mention where files are stored in the different operating modes
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
227b58f5ec
Update Table of Contents and rewrite Examples intro a bit
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
a7510d469b
Merge pull request #51 from troglobit/configure-with-udev
Add --with-udev[=PATH] to configure script, for non-SUID root operation
il y a 6 ans
Joachim Nilsson
d784b15a7f
Fix logging macro to add \n after each log message
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
7519c744cf
Fix #46 : Migrate to use ~/.cache/light for unpriviliged operation
When light is installed in the non-SUID root mode it cannot write to
/etc/light anymore, so we set up a ~/.cache/light instead.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
bd21ac4ded
Fix #45 : Add --with-udev[=PATH] to configure, disables classic SUID root
This patch adds support for installing the 90-backlight.rules to gain
privileges to the kernel sysfs files. By default the classic SUID root
mode is used and the rules file is not installed.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
445cf8295a
Merge pull request #50 from AloisMahdal/fedora
Add Fedora installation instructions
il y a 6 ans
Alois Mahdal
c609610fe4
Add Fedora installation instructions
il y a 6 ans
Joachim Nilsson
e226e2d7d2
Merge pull request #48 from troglobit/coding-style
Coding style
il y a 6 ans
Joachim Nilsson
ae022f1aca
Disable compiler warning for when we compare unsinged value < 0
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
1aa2b217eb
Coding style: de-camelize, simplify and refactor
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
ab5aa6c968
Coding style: reindent to Linux KNF
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
5d5e3c3e83
Merge pull request #43 from troglobit/misc
Misc
il y a 6 ans
Joachim Nilsson
99950f7c51
Overhaul and simplify program usage and documentation in README
- Use version from configure script
- Simplify usage text for accessibility, only one command at a time
- Simplify terminology, we have commands and options to commands
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
727c1b0adc
It should be safe to default to C99 now
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
fd267b6d97
Rearrange and simplify text a bit, also put examples early
Most users want to see the examples as early as possible, so we place
them directly after the new (simplified) introduction. The examples
have been rewritten to separate commands from options and grouping
the command with its value, where applicable.
The rest of the document has just been auto-filled to fit to < 72
columns and sections now use === and ---- for headings to make the
README more accessible from a terminal.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
acf5156f5c
Add udev rules files based on README
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
9201811a4c
Delete makeexec.sh
Unused file.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
73d7e48da5
Merge pull request #42 from troglobit/configure-script
Convert build system to GNU configure & build
il y a 6 ans
Joachim Nilsson
00889580cd
Document new build process, both from tarball and directly from GIT
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
c6e45de364
Ignore global indexing files
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
d6a0fb6720
Relocate include/ files to src/, to simplify dist packaging
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
2301ccf437
Add light.1 man page to dist and install
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
d75221ca74
Merge branch 'master' into configure-script
il y a 6 ans
Joachim Nilsson
033486bf9a
Merge pull request #41 from troglobit/man-page
Add proper light.1 man page, removes help2man dependency
il y a 6 ans
Joachim Nilsson
206ded2c00
Merge branch 'master' into man-page
il y a 6 ans
Joachim Nilsson
c1fa23b38c
Merge pull request #30 from mattandersen/BetterPrefixSupport
Better Support for Overriding Install Prefix
il y a 6 ans
Joachim Nilsson
8191c64a80
Merge pull request #28 from abdullahibnnadjo/master
Address #27
il y a 6 ans
Joachim Nilsson
698732474c
Convert build system to GNU configure & build
This patch adds a standard configure script and converts the Makefile to
automake. This adresses PR #30 , but in a more generic way, and also
eliminates the hard coded CC variable, enabling building with clang or
even a cross compiler.
Note: this is more a proof of concept and does not include the man page
generation. Another pull request addresses that.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Joachim Nilsson
79f90eb8dc
Add proper light.1 man page, removes help2man dependency
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
il y a 6 ans
Fredrik Svantesson
9a0b7bd63f
Merge pull request #29 from Eyenseo/master
Fix save and restore arguments
il y a 6 ans
Matthew Andersen
478d2040b3
Restore DESTDIR support.
il y a 6 ans
Matthew Andersen
a1a4c52a5d
Better Support for Overriding Install Prefix
By not always appending "/usr" to the path, it enables install into /usr/local
and better integration with tools like stow.
il y a 6 ans
eyenseo
6eb9418685
Fix save and restore arguments
Without this patch -O and -I are not supported anymore and lead to an
error.
il y a 6 ans
Abdullah ibn Nadjo
26f79b761a
Use the install command instead of raw cp/mv/chmod. #27
il y a 7 ans
Abdullah ibn Nadjo
cbcf92db3c
Add help2man dependency in README
il y a 7 ans
Fredrik Svantesson
1ec60ac183
Merge pull request #25 from abdullahibnnadjo/master
Various fixes and improvements
il y a 7 ans
Abdullah ibn Nadjo
38c3bf387c
Bump version to 0.10 and make errors (finally?) print to stderr
il y a 7 ans