-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
57f3ea9
commit b137419
Showing
12 changed files
with
201 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
Version 2, December 2004 | ||
|
||
Copyright (C) 2004 Sam Hocevar <[email protected]> | ||
|
||
Everyone is permitted to copy and distribute verbatim or modified | ||
copies of this license document, and changing it is allowed as long | ||
as the name is changed. | ||
|
||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
|
||
0. You just DO WHAT THE FUCK YOU WANT TO. | ||
|
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,87 @@ | ||
# | ||
## Optional prefixes: | ||
# | ||
|
||
# common 'packaging' directoty | ||
|
||
FAKEROOT=$(DESTDIR) | ||
|
||
# Autoconf-style prefixes are activated when $(prefix) is defined. | ||
# Otherwise binaries and libraries are installed in /{lib,sbin}/, | ||
# header files in /usr/include/ and documentation in /usr/man/man?/. | ||
# These choices are motivated by the fact that getcap and setcap are | ||
# administrative operations that could be needed to recover a system. | ||
|
||
ifndef lib | ||
lib=$(shell ldd /usr/bin/ld|egrep "ld-linux|ld.so"|cut -d/ -f2) | ||
endif | ||
|
||
ifdef prefix | ||
exec_prefix=$(prefix) | ||
lib_prefix=$(exec_prefix) | ||
inc_prefix=$(lib_prefix) | ||
man_prefix=$(prefix)/share | ||
else | ||
prefix=/usr | ||
exec_prefix= | ||
lib_prefix=$(exec_prefix) | ||
inc_prefix=$(prefix) | ||
man_prefix=$(prefix)/share | ||
endif | ||
|
||
# Target directories | ||
|
||
MANDIR=$(FAKEROOT)$(man_prefix)/man | ||
SBINDIR=$(FAKEROOT)$(exec_prefix)/sbin | ||
INCDIR=$(FAKEROOT)$(inc_prefix)/include | ||
LIBDIR=$(FAKEROOT)$(lib_prefix)/$(lib) | ||
PKGCONFIGDIR=$(FAKEROOT)$(prefix)/$(lib)/pkgconfig | ||
|
||
# common defines for libcap | ||
LIBTITLE=pam-email | ||
VERSION=0 | ||
MINOR=1 | ||
# | ||
|
||
# Compilation specifics | ||
|
||
KERNEL_HEADERS := $(topdir)/libcap/include/uapi | ||
IPATH += -fPIC -I$(KERNEL_HEADERS) -I$(topdir)/libcap/include | ||
|
||
CC := gcc | ||
CFLAGS := -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 | ||
BUILD_CC := $(CC) | ||
BUILD_CFLAGS := $(CFLAGS) $(IPATH) | ||
AR := ar | ||
RANLIB := ranlib | ||
DEBUG = -g #-DDEBUG | ||
WARNINGS=-Wall -Wwrite-strings \ | ||
-Wpointer-arith -Wcast-qual -Wcast-align \ | ||
-Wstrict-prototypes -Wmissing-prototypes \ | ||
-Wnested-externs -Winline -Wshadow | ||
LD=$(CC) -Wl,-x -shared | ||
LDFLAGS := #-g | ||
|
||
SYSTEM_HEADERS = /usr/include | ||
INCS=$(topdir)/libcap/include/sys/capability.h | ||
LDFLAGS += -L$(topdir)/libcap | ||
CFLAGS += -Dlinux $(WARNINGS) $(DEBUG) | ||
PAM_CAP := $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo yes ; else echo no ; fi) | ||
INDENT := $(shell if [ -n "$(which indent 2>/dev/null)" ]; then echo "| indent -kr" ; fi) | ||
DYNAMIC := $(shell if [ ! -d "$(topdir)/.git" ]; then echo yes; fi) | ||
LIBATTR := yes | ||
|
||
# When installing setcap, set its inheritable bit to be able to place | ||
# capabilities on files. It can be used in conjunction with pam_cap | ||
# (associated with su and certain users say) to make it useful for | ||
# specially blessed users. If you wish to drop this install feature, | ||
# use this command when running install | ||
# | ||
# make RAISE_SETFCAP=no install | ||
# | ||
RAISE_SETFCAP := $(LIBATTR) | ||
|
||
# Global cleanup stuff | ||
|
||
LOCALCLEAN=rm -f *~ core | ||
DISTCLEAN=@find . \( -name '*.orig' -o -name '*.rej' \) | xargs rm -f |
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,28 @@ | ||
# | ||
# Makefile for pam-email | ||
# | ||
topdir=$(shell pwd) | ||
include Make.Rules | ||
|
||
# | ||
# flags | ||
# | ||
|
||
all install clean: %: %-here | ||
$(MAKE) -C src $@ | ||
|
||
all-here: | ||
|
||
install-here: | ||
|
||
clean-here: | ||
$(LOCALCLEAN) | ||
|
||
distclean: clean | ||
$(DISTCLEAN) | ||
|
||
release: distclean | ||
cd .. && tar --exclude cvf pam-email/.git pam-email-$(VERSION).$(MINOR).tar pam-email/* | ||
|
||
tagrelease: distclean | ||
make release |
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,3 @@ | ||
!.gitignore | ||
debhelper.log | ||
tmp |
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 @@ | ||
pam-email (1:0.1.0) trusty; urgency=high | ||
|
||
* Initial release | ||
|
||
-- Peter Surda <[email protected]> Sun, 15 Dec 2014 12:40:00 +0100 | ||
|
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,9 @@ | ||
Source: pam-email | ||
Section: libs | ||
Maintainer: Peter Surda <[email protected]> | ||
Build-Depends: libcurl-dev, libpam-dev | ||
|
||
Package: pam-email | ||
Architecture: any | ||
Multi-Arch: same | ||
Description: Send tokens by email for authentication |
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,22 @@ | ||
dh_auto_configure | ||
override_dh_auto_build dh_auto_build | ||
dh_auto_build | ||
dh_auto_test | ||
dh_prep | ||
override_dh_auto_install dh_auto_install | ||
dh_auto_install | ||
dh_installdocs | ||
dh_installchangelogs | ||
dh_perl | ||
dh_link | ||
dh_compress | ||
dh_fixperms | ||
dh_strip | ||
override_dh_makeshlibs dh_makeshlibs | ||
dh_makeshlibs | ||
dh_shlibdeps | ||
dh_installdeb | ||
dh_gencontrol | ||
dh_md5sums | ||
dh_builddeb | ||
dh_builddeb |
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 @@ | ||
pam-email_0.1.0_amd64.deb libs - |
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,26 @@ | ||
#!/usr/bin/make -f | ||
|
||
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) | ||
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) | ||
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) | ||
|
||
ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) | ||
CC := gcc | ||
else | ||
CC := $(DEB_HOST_GNU_TYPE)-gcc | ||
endif | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_auto_build: | ||
dh_auto_build -- CC=$(CC) BUILD_CC=gcc | ||
|
||
override_dh_auto_install: | ||
dh_auto_install -- lib=lib/$(DEB_HOST_MULTIARCH) | ||
|
||
override_dh_makeshlibs: | ||
dh_makeshlibs | ||
|
||
get-orig-source: | ||
-uscan --upstream-version 0 |
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 @@ | ||
3.0 (quilt) |
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 @@ | ||
tar-ignore = ".git" |
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,3 @@ | ||
misc:Pre-Depends=multiarch-support | ||
shlibs:Depends=libcurl3 (>= 7.16.2), libpam0g (>= 0.99.7.1) | ||
misc:Depends= |