summary refs log tree commit diff
path: root/bin/dash (follow)
Commit message (Expand)AuthorAge
* Merge dash v0.5.11.4June McEnroe2021-06-20
* Check in dash autogen files for realJune McEnroe2021-04-25
* Copy automake filesJune McEnroe2021-04-25
* Revert "Check in dash autogen files"June McEnroe2021-04-25
* Check in dash autogen filesJune McEnroe2021-04-04
* Warn twice about stopped jobsJune McEnroe2021-02-04
* Set H_SETUNIQUEJune McEnroe2020-12-28
* Fix dash Makefile compatibility with BSD makeJune McEnroe2020-12-23
* Fix multi-line prompts when right prompts are usedJune McEnroe2020-12-23
* Add RPS1 and RPS2 right prompt variablesJune McEnroe2020-12-23
* Cache the expanded prompt for editlineJune McEnroe2020-12-23
* Bind libedit's secret filename completion functionJune McEnroe2020-12-22
* Build with libedit by defaultJune McEnroe2020-12-22
* Fail if building --with-libedit and can't find libeditJune McEnroe2020-12-22
* Merge commit '71c7cbab2b50436db940721a10d6ea1ca5d75f89' as 'bin/dash'June McEnroe2020-12-22
McEnroe <june@causal.agency> 2019-11-02 05:19:02 -0400 Add calico rc script' href='/pounce/commit/Makefile?h=1.3&id=f5eb3c5b008c044a253c0be753e9573e215d1f6c'>f5eb3c5 ^
36e5d19 ^
31d09e3 ^
954707d ^
9f55d9b ^
510e4e1 ^
f69cb82 ^
88b9e3a ^
e0d292c ^
2b9244f ^
b8b7018 ^
a083fdb ^

36e5d19 ^

a2e95a5 ^
2b9244f ^
616a243 ^
2b9244f ^

ee15889 ^
2b9244f ^
c7223d7 ^

2b9244f ^



36e5d19 ^
50fc795 ^
f5eb3c5 ^
db65889 ^
36e5d19 ^

7003169 ^


50fc795 ^

36e5d19 ^

7003169 ^

39bf65e ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
                   
                            
                      

                                           
                               
 

                    

                                       

                  
 
                
                
                
               
              
                
               
 
             

            

                  
                                                          
 
               

                                                
                          
 

                    



                        
                                             
 
                               
                                               

                                             


                                                                  

          

                                        

                                                               





                                                                                                                                                                
PREFIX = /usr/local
MANDIR = ${PREFIX}/share/man
ETCDIR = ${PREFIX}/etc

CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
LDLIBS = -lcrypt -lcrypto -ltls

BINS = calico pounce
MANS = ${BINS:=.1}
RCS  = ${BINS:%=rc.d/%}
DIRS = ${ETCDIR}/pounce /var/run/calico

-include config.mk

OBJS += bounce.o
OBJS += client.o
OBJS += config.o
OBJS += local.o
OBJS += ring.o
OBJS += server.o
OBJS += state.o

dev: tags all

all: ${BINS}

calico: dispatch.o
	${CC} ${LDFLAGS} dispatch.o ${LDLIBS.calico} -o $@

pounce: ${OBJS}
	${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@

${OBJS}: bounce.h compat.h

dispatch.o: compat.h

tags: *.c *.h
	ctags -w *.c *.h

clean:
	rm -f tags ${BINS} ${OBJS} dispatch.o

install: ${BINS} ${MANS} ${RCS}
	install -d ${PREFIX}/bin ${MANDIR}/man1
	install ${BINS} ${PREFIX}/bin
	install -m 644 ${MANS} ${MANDIR}/man1
	if [ -n '${RCS}' ]; then install -d ${ETCDIR}/rc.d; fi
	if [ -n '${RCS}' ]; then install ${RCS} ${ETCDIR}/rc.d; fi
	if [ -n '${DIRS}' ]; then install -d ${DIRS}; fi

uninstall:
	rm -f ${BINS:%=${PREFIX}/bin/%}
	rm -f ${MANS:%=${MANDIR}/man1/%}
	if [ -n '${RCS}' ]; then rm -f ${RCS:%=${ETCDIR}/%}; fi
	if [ -n '${DIRS}' ]; then rmdir ${DIRS}; fi

localhost.crt:
	printf "[dn]\nCN=localhost\n[req]\ndistinguished_name=dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth" \
		| openssl req -x509 -out localhost.crt -keyout localhost.key \
		-newkey rsa:2048 -nodes -sha256 \
		-subj '/CN=localhost' -extensions EXT -config /dev/fd/0